Skip to content

Instantly share code, notes, and snippets.

@dejurin
Created August 19, 2023 09:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dejurin/5c55e31c05fecbc6625cf5fd1749d960 to your computer and use it in GitHub Desktop.
Save dejurin/5c55e31c05fecbc6625cf5fd1749d960 to your computer and use it in GitHub Desktop.
Date Formats
const dateFormats: string[] = [
'yyyy-MM-dd',
'dd/MM/yyyy',
'd/MM/yyyy',
'dd.MM.yyyy',
'yyyy-M-d',
'd.M.yyyy',
'dd-MM-yyyy',
'MM/dd/yyyy',
'd.MM.yyyy',
'd/M/yyyy',
'MM-dd-yyyy',
'dd.MM.yyyy.',
'yyyy.MM.dd.',
'yyyy/MM/dd',
'yyyy. M. d',
'yyyy.M.d',
'yyyy.d.M',
'd.M.yyyy.',
'd-M-yyyy',
'M/d/yyyy',
'yyyy/M/d',
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment