Converting json date time format

android1

Board Regular
Joined
Feb 12, 2016
Messages
69
Hi,

I have a column full of json dates & times like this-> /Date(1457355600000). I need to convert this to 07/03/2016 1:00PM
but am a bit bamboozled.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hi, that is milliseconds since the turn of the day 1/1/1970 GMT, so (assuming the json time in A2)....

=(A2/86400000)+25569

Would return the time 0 from GMT, you can convert it to your timezone but appending the time difference


Excel 2007
AB
2145735560000007/03/2016 13:00:00
Sheet4
Cell Formulas
RangeFormula
B2=(A2/86400000)+25569


=(A2/86400000)+25569+(-6/24)

Is 6 hours behind GMT

HTH
 
Last edited:
Upvote 0
Thanks a million dave. Any idea why I'd be getting my years as 1984 instead of 2016?

That seems odd, I was only able to test the one actual json date you posted, could you post a set of say 10-15 more. Even better if you can use a HTML Table maker (such as the one in my signature block) to show what json dates you have and the erroneous results.

Thanks
 
Upvote 0

Forum statistics

Threads
1,214,786
Messages
6,121,546
Members
449,038
Latest member
Guest1337

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top