Member_2_1242703
asked on
Converting dates in JavaScript
I have this as a returned value from SQL to JavaScript
/Date(1486101600000)/
(In SQL it's 2017-01-30 00:00:00.000)
How do I convert this to 01-30-2017 in JavaScript?
/Date(1486101600000)/
(In SQL it's 2017-01-30 00:00:00.000)
How do I convert this to 01-30-2017 in JavaScript?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window
wich is the latest version.Then write your code as the following code
Open in new window
the output console is... 03/02/2017