💻 How to check: Pointing yourself at root of the project run yarn uc2 and you will see the code execution of all the formats with and without library.
Here are some of the commonly used formats.
- ISO 8601 format:
YYYY-MM-DDTHH:MM:SSZ->2023-04-22T09:30:00Z - American format:
MM/DD/YYYYorMM/DD/YY->04/22/2023or04/22/23 - European format:
DD/MM/YYYYorDD/MM/YY->22/04/2023or22/04/23 - Written-out format:
Month DD, YYYY->April 22, 2023 - Unix timestamp:
Number of seconds since January 1, 1970, at 00:00:00 UTC->1,768,167,600 - 24-hour clock:
HH:MM:SS->09:30:00 - RFC 2822 format:
Day, DD Mon YYYY HH:MM:SS +ZZZZ->Fri, 22 Apr 2023 09:30:00 +0000 - Long date format:
Day, Month DD, YYYY->Friday, April 22, 2023
Formats based on nationalities.
-
United States:
MM/DD/YYYYorMM/DD/YY(for example, 04/22/2023 or 04/22/23) The United States also uses a 12-hour clock format with AM and PM, such as 9:30 AM or 2:45 PM. -
United Kingdom:
DD/MM/YYYYorDD/MM/YY(for example, 22/04/2023 or 22/04/23) The United Kingdom typically uses a 24-hour clock format, such as 09:30 or 14:45. -
Canada:
MM/DD/YYYYorDD/MM/YYYY(both formats are used depending on the region) Canada also typically uses a 12-hour clock format with AM and PM, such as 9:30 AM or 2:45 PM. -
Australia:
DD/MM/YYYYorDD/MM/YY(for example, 22/04/2023 or 22/04/23) Australia typically uses a 24-hour clock format, such as 09:30 or 14:45. -
Japan:
YYYY年MM月DD日(for example, 2023年04月22日) Japan typically uses a 24-hour clock format, such as 09:30 or 14:45. -
China:
YYYY年MM月DD日(for example, 2023年04月22日) China typically uses a 24-hour clock format, such as 09:30 or 14:45. -
Germany:
DD.MM.YYYY(for example, 22.04.2023) Germany typically uses a 24-hour clock format, such as 09:30 or 14:45.