Last active
December 29, 2020 07:59
-
-
Save brentk/56e16941419450f1cc4cd696e0fc9295 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
1/2/2017 | |
moment().format("M/D/YYYY"); | |
01/02/2017 | |
moment().format("MM/DD/YYYY"); | |
14:57:22 | |
moment().format("HH:mm:ss"); | |
02:57 PM | |
moment().format("hh:mm A"); | |
2:57pm | |
moment().format("h:mma"); | |
February 2nd, 2017 | |
moment().format("MMMM Do, YYYY"); | |
Tuesday, 02-Feb-17 | |
moment().format("dddd, DD-MMM-YY"); | |
Full docs: https://momentjs.com/docs/#/displaying/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment