ACR Rules

  1. Home
  2. Docs
  3. ACR Rules
  4. Reliability (41)
  5. MM and mm tokens should be used correctly in parse/format date-time functions

MM and mm tokens should be used correctly in parse/format date-time functions

Released in version 1.5 (14 February 2020)

‘This is likely a bug and should be changed.
Lowercase “mm” stands for a minute in an hour, but uppercase “MM” stands for the month of the year.
They should not be mixed. Months should be used together with year or day while minute should be used together with hour.’

Noncompliant example:

parseDateTime('2015-05-21', 'yyyy-mm-dd')

parseDateTime('13:37', 'HH:MM')