How to convert timestamp to readable date/time?

I have an API result giving out timestamp like this 1447804800000. How do I convert this to a readable format using Javascript/jQuery?

Answers 1

  • You can convert this to a readable date using new Date() method

    if you have a specific date stamp, you can get the corresponding date time format by the following method

    var date = new Date(timeStamp);

    in your case

    var date = new Date(1447804800000);

    this will return

    Wed Nov 18 2015 05:30:00 GMT+0530 (India Standard Time)

Related Articles