Click here to Skip to main content
16,004,678 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to fetch time with type Time from sql .But in the front end it shows like this /Date(-62135596800000)/
how to convert it to real time format ?
Posted

1 solution

JavaScript
new Date(parseInt('/Date(62135596800000)/'.substr(6)));

reference[^]
Read this: http://deepinthecode.com/2014/08/05/converting-a-sql-datetime-to-a-javascript-date/[^]


-KR
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900