Language | Year | Month | Day | Hour | Minute | Second |
---|---|---|---|---|---|---|
Result | 2017 | 01 | 01 | 14 | 52 | 03 |
C# DateTime | yyyy | MM | dd | HH | mm | ss |
Java SimpleDateFormat | yyyy | MM | dd | HH | mm | ss |
JavaScript Moment.js | YYYY | MM | DD | HH | mm | ss |
Oracle TO_CHAR | YYYY | MM | DD | HH24 | MI | SS |
PHP Carbon | Y | m | d | H | i | s |
PHP date | Y | m | d | H | i | s |
PHP DateTime | Y | m | d | H | i | s |
Python datetime | %Y | %m | %d | %H | %M | %S |
Last active
January 18, 2021 14:15
-
-
Save diogoko/56b045bacee6082d3021ffde77fd77f2 to your computer and use it in GitHub Desktop.
Date formatting flags by language
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment