{"id":48059,"date":"2021-01-29T12:56:41","date_gmt":"2021-01-29T19:56:41","guid":{"rendered":"https:\/\/ephesoft.com\/docs\/?p=48059"},"modified":"2021-12-10T07:15:14","modified_gmt":"2021-12-10T14:15:14","slug":"kb00021170-format-conversion","status":"publish","type":"post","link":"https:\/\/ephesoft.com\/docs\/kb00021170-format-conversion\/","title":{"rendered":"Format Conversion Shows Incorrect Year for Certain Dates in 2020"},"content":{"rendered":"
Applies to: <\/strong>All versions of Ephesoft Transact<\/span><\/p>\n When creating Format Conversion <\/strong>rules to modify dates, you may experience unexpected behavior with converted years. Specifically, certain days at the end of December may be incorrectly converted to the wrong year.<\/span><\/p>\n For example, the sample value of “12\/30\/2020” may be converted to “12\/30\/2021”.<\/span><\/p>\n The year can have different values depending on using lowercase or uppercase in your Format Conversion <\/strong>rule, which affects how the rule defines a year.<\/span><\/p>\n This difference may cause your rules to execute correctly except for when dealing with dates at the very end of some years. <\/span>This is illustrated in the following example:<\/span><\/p>\n For the date “12\/31\/2020” (December 31, 2020), using “YYYY” will incorrectly output 2021.<\/span><\/p>\n<\/a>Issue<\/span><\/h2>\n
<\/a>Root Cause<\/span><\/h2>\n
\n