Created
January 8, 2016 21:16
-
-
Save fauverism/aab13e496683d5316e87 to your computer and use it in GitHub Desktop.
format a string back to a date value to show in an input with type=date
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
val = moment(val, "YYYY-MM-DD").format('L'); | |
val = new Date(val); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment