Valid Date-Time Formats
This page describes how dates can be parsed using valid date-time formats. This page is linked throughout the documentation where these date-time formats are needed or can be used.
Some functionality of the product allows you to manually enter a date-time. When entering a date-time, the question often arises as to what date-time format is acceptable.
List of available date-time formats
The common date-time format in the product is:
yyyy-MM-dd'T'H:m:s[.SSS][xxx][xx][X]
Note: Square brackets mean values can be optional. However, if you use ZonedDateTime to parse the date, then the timezone [X]
of this format is required.
The following are examples of possible date-times that can be parsed using the above format.
With milliseconds:
2022-02-02T02:02:03.900+01:00
2022-02-02T02:02:03.90+0100
2022-02-02T02:02:03.900Z
Without milliseconds:
2022-02-02T22:00:00Z
2022-02-02T22:00:00+01:00
2022-02-02T22:00:00-0100
© TIM Solutions GmbH | AGB | Datenschutz | Impressum