How would I convert this timestamp
2016-06-05T00:00:00.000Z
Into this:
Sunday June 6th 2016
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.
最终使用这个简单的库: http : //blog.stevenlevithan.com/archives/date-time-format
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.