Created
March 5, 2014 19:05
-
-
Save weslley39/9374196 to your computer and use it in GitHub Desktop.
Asp Mvc Date to Js 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
var mili = Data.replace('Date', '').replace('/', '').replace('(', '').replace(')', '').replace('/', ''); | |
var dataJavascript = new Date(eval(mili)); | |
var realDate = dataJavascript.toLocaleDateString(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment