简体   繁体   中英

Convert datetime to date format?

Datetime has format like this: var datetime = "2015-10-19T22:50:00.000+02:00"

How can I convert it to 19 Oct, 2015 ?

Thank you so much

var datetime = "2015-10-19T22:50:00.000+02:00"
new Date(datetime).toDateString()

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM