SSIM Date Reader
Airline schedules write a date as DDMMMYY, such as 01JAN26. Two things in it are easy to get wrong. The month letters are the same in every country, and the two-digit year does not say which century it means. parseSsimDate reads the code with the window you give it and takes no locale.
Type a date, state a window and pick a locale, or press one of the presets. Section 1 reads the date. Section 2 puts the same text through parseDateWithPattern, which reads the month as the locale’s own short name: a different function, used wrongly, and the table beside it shows why. Section 3 writes an ISO date back. Every date and every month letter on the page is a library result, and each section prints the calls it made.
SSIM reads. parseSsimDate takes upper-case letters only, and the window you pass says which hundred years the two-digit year falls in: a first year, or a rolling window that moves with today. With no window there is no date, and the page says so.
Valid. isValidSsimDate is true exactly when the read returns a date.
The locale pattern. parseDateWithPattern reads MMM as the short month names of the locale it is given, and ignores case. For an SSIM date that is the wrong function: the month letters are part of the format, and a translated month is not the code. getLocaleMonthNames lists the names the table sets beside the SSIM letters.
SSIM writes. formatSsimDate writes an ISO date as DDMMMYY, and refuses a year outside the window, because it would read back as another century.
See Aviation message times, an SSIM month read in the wrong language and Aviation mistakes.
Worth trying:
- 01JAN26 with an fr-FR pattern — the SSIM reader gives 2026-01-01 and the pattern parser has no date, because that locale writes the month
janv.. - The same text with an English pattern — the two agree only because English short names happen to match the code.
- 25OCT26 with a tr-TR pattern — the locale you pass the pattern parser changes nothing for the SSIM reader.
- Lower case — the SSIM reader refuses
01jan26, and the pattern parser reads it. - A translated month —
01ENE26reads underes-ESand is refused by the SSIM reader. - An archive window — a window from 1950 puts
09in 2009. - 29FEB00 from 2000 — valid, because 2000 is a leap year.
- 29FEB00 from 1900 — not valid, because 1900 has no 29 February.
- A rolling window — the window moves with today.
- No window — no century stated, no date.
- Write a year outside the window — the writer refuses 1999-12-31 in a window from 2000.
© 2026 NorthGuild · Licences
Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.