Date's month digit appears as 00

Applies to Infiniti v8.0 or later
 

Problem

When formatting a date the month will appear as 00 if a lowercase 'mm' has been used within the format string. As in the example below:

Date Format String Output
25/12/2020 dd/mm/yyyy 25/00/2020
25/12/2020 dd/MM/yyyy 25/12/2020

 

Solution

The incorrect month is due to the lower case 'm' character referring to the minute value whereas the upper case 'M' referrers to the month value.

 

Related Articles

 

Keywords

Date Format Appear Wrong Date panelMacro month value