Selected date on the Date Data macro is showing a different year

Summary

When entering a date value in the Date Data macro, the selected date is showing a different value on the Confluence page. 

In this example, a user set the date as 31-12-2019 (December 31st, 2019):

But on the Confluence page, the date shows the year 2020 instead:

Environment

  • All Confluence version
  • All Scaffolding version

Cause

The display format of the Date Data macro is case sensitive. In other words, the format YYYY is not the same as yyyy

In the example above, the display format for the date-data was using YYYY

Resolution

Use the correct display format for the Date Data macro according to the documentation.