-1

How would I convert this timestamp

2016-06-05T00:00:00.000Z

Into this:

Sunday June 6th 2016
user2820604
  • 261
  • 1
  • 6
  • 15
  • 4
    Possible duplicate of [How to format a JavaScript date](http://stackoverflow.com/questions/3552461/how-to-format-a-javascript-date) – Turnip May 31 '16 at 21:07
  • 1
    Please show us the code you've tried after googling "Javascript date formatting" and where you're stuck and we'll see if we can help. – Tad Donaghe May 31 '16 at 21:09

2 Answers2

0

With the given timestamp, you can convert it into a Javascript Date Object. Then with the date object you get either manually construct what you want or use getTimeString. You can check the full api for date objects on the MDN page.

teaflavored
  • 382
  • 3
  • 9
0

Ended Up using this easy library: http://blog.stevenlevithan.com/archives/date-time-format

user2820604
  • 261
  • 1
  • 6
  • 15