Date and time formats

Let's say I have a form to collect name and birthdays.

Birthday form

Since people can enter their birthdays in formats, we need to provide a consistent format.

Here is the form using a date input field. It has a standard year-month-day format.

Birthday form date field

Having the date in this format makes it sortable.

ISO Date Format

A standardized format that supports a variety of requirements, such as being sortable.

2022-08-17T21:19:56+00:00
2022-08-17T21:19:56Z

https://en.wikipedia.org/wiki/ISO_8601

Timestamp

A value containing date and time.

Unix time

Number of seconds since Jan 1, 1970.

Level
Topics