Created
May 10, 2021 20:55
-
-
Save harmlessprince/f0fd0d83edfc8a16f0ea0c7989ef2a00 to your computer and use it in GitHub Desktop.
An array of 13 date formats
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return [ | |
[ | |
"id" => 1, | |
"date_order" => 'MM/DD/YY', | |
'Description' => 'Month-Day-Year with leading zeros (02/17/2009)' | |
], | |
[ | |
"id" => 2, | |
"date_order" => 'DD/MM/YY', | |
'Description' => 'Day-Month-Year with leading zeros (17/02/2009)' | |
], | |
[ | |
"id" => 3, | |
"date_order" => 'YY/MM/DD', | |
'Description' => 'Year-Month-Day with leading zeros (2009/02/17)' | |
], | |
[ | |
"id" => 4, | |
"date_order" => 'Month D, Yr', | |
'Description' => 'Month name-Day-Year with no leading zeros (February 17, 2009)' | |
], | |
[ | |
"id" => 5, | |
"date_order" => 'M/D/YY', | |
'Description' => 'Month-Day-Year with no leading zeros (2/17/2009)' | |
], | |
[ | |
"id" => 6, | |
"date_order" => 'D/M/YY', | |
'Description' => 'Day-Month-Year with no leading zeros (17/2/2009)' | |
], | |
[ | |
"id" => 7, | |
"date_order" => 'YY/M/D', | |
'Description' => 'Year-Month-Day with no leading zeros (2009/2/17)' | |
], | |
[ | |
"id" => 8, | |
"date_order" => 'bM/bD/YY', | |
'Description' => 'Month-Day-Year with spaces instead of leading zeros | |
( 2/17/2009)' | |
], | |
[ | |
"id" => 9, | |
"date_order" => 'bD/bM/YY', | |
'Description' => 'Day-Month-Year with spaces instead of leading zeros (17/ 2/2009)' | |
], | |
[ | |
"id" => 10, | |
"date_order" => 'D Month, Yr', | |
'Description' => 'Day-Month name-Year (17 February, 2009)' | |
], | |
[ | |
"id" => 11, | |
"date_order" => 'Mon-DD-YYYY', | |
'Description' => 'Month abbreviation, Day with leading zeros, Year | |
(Feb 17, 2009' | |
], | |
[ | |
"id" => 12, | |
"date_order" => 'DD-Mon-YYYY', | |
'Description' => 'Day with leading zeros, Month abbreviation, Year | |
17 Feb, 2009.' | |
], | |
[ | |
"id" => 13, | |
"date_order" => 'YYYYY-Mon-DD', | |
'Description' => 'Year, Month abbreviation, Day with leading zeros | |
(2009, Feb 17)' | |
], | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment