Skip to content

SSIM Date Reader

  • Airline schedule dates in IATA SSIM files, METAR and TAF report times with no month, and NOTAM validity times.

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.

1. Read an SSIM date

The SSIM reader gives the date. Given fr-FR, the pattern parser reads the month as that locale's own short name, janv., so it does not. The window is this example's pick: change it.

Window

The first of the hundred years a two-digit year can mean.

Feeds only the comparison below. parseSsimDate takes no locale.

SSIM reads
nothing typed
parseSsimDate
Valid
nothing typed
isValidSsimDate

Type an SSIM date, such as 01JAN26, to read it.

2. The same text through a locale pattern

parseDateWithPattern reads MMM as the chosen locale's own short month names, and ignores case, as a reader of prose should. An SSIM date is written in no locale, so this is the wrong function for it.

Pattern reads (ddMMMyy, fr-FR)
nothing typed
parseDateWithPattern
The twelve months: SSIM letters from formatSsimDate in the window 2000, and the short names of the chosen locale
MonthSSIM lettersShort name
01no nameno name
02no nameno name
03no nameno name
04no nameno name
05no nameno name
06no nameno name
07no nameno name
08no nameno name
09no nameno name
10no nameno name
11no nameno name
12no nameno name

3. Write a date back

Section 3 uses the window from section 1: it has no window of its own.

SSIM writes
nothing typed
formatSsimDate
Reads back as
nothing typed
parseSsimDate

Type an ISO date, such as 2026-01-01, to write it.

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:

© 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.