Add support for %F (ISO 8601 date) format specifier to wxDateTime

Recognize it when formatting and parsing dates.

Closes #24173.
This commit is contained in:
Vadim Zeitlin 2023-12-30 17:01:19 +01:00
parent ce1d317768
commit 7543e49c3c
2 changed files with 21 additions and 0 deletions

View file

@ -684,6 +684,7 @@ void DateTimeTestCase::TestTimeFormat()
{ CompareYear, "Date is %x, time is %X" }, // %x could use 2 digits
{ CompareTime, "Time is %H:%M:%S or %I:%M:%S %p" },
{ CompareNone, "The day of year: %j, the week of year: %W" },
{ CompareDate, "ISO date using short form: %F" },
{ CompareDate, "ISO date without separators: %Y%m%d" },
{ CompareBoth, "RFC 2822 string: %Y-%m-%d %H:%M:%S.%l %z" },