Search code examples
delphiformatdatetime

TFormatSettings.Create returns incorrect formats


When doing a TFormatSettings.Create I get the following formats

ShortDateFormat: 'dd/MM/yyyy'
ShortTimeFormat: 'hh:mm'

However according to the various FormatDateTime docs, the month should be "mm" and the minutes should be "nn"

Is it a bug/locale issue, or do these really use another incompatible format convention?


Solution

  • The documentation for mm says, with my emphasis:

    Displays the month as a number with a leading zero (01-12). If the mm specifier immediately follows an h or hh specifier, the minute rather than the month is displayed.