Skip to main content

Date Formatting

When submitting dates to the API, we recommend using the ISO 8601 to avoid ambiguity. The API will accept dates in other formats, but it may misinterpret those formats.

ISO 8601

The ISO 8601 format is an international standard for representing dates and times.

Here are some examples:

FormatExampleDescription
YYYY-MM-DD2019-01-01Date
YYYY-MM-DDTHH:MM:SS2019-01-01T12:00:00Date and time
YYYY-MM-DDTHH:MM:SSZ2019-01-01T12:00:00ZDate and time with UTC timezone
YYYY-MM-DDTHH:MM:SS±HH:MM2019-01-01T12:00:00-05:00Date and time with timezone offset

Ambiguous Formats

Other formats may be ambiguous, for example: You could interpret 01/02/2023 as either January 2nd or February 1st, depending on your locale.

The Fleetio API will typically interpret these dates as day-first, then month, meaning that it would understand 01/02/2023 to mean February 1st, 2023, but there may be exceptions.