Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to convert an UTC JSON date time eg:/Date(1433309688000)/ to local date time based on user's timezone using moment.js.

The expected result for the json date /Date(1433309688000)/ in Indian Standard Time is 2015-06-03 16:03:21.
Posted

1 solution

C#
var tmp =  moment("/Date(1433309688000)/").utcOffset('+10:29').format('YYYY-MM-DD HH:mm:ss');
alert(tmp);


you can try this http://momentjs.com/timezone/[^] too .
 
Share this answer
 
v5

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