I have the following date time 2012-05-01T00:00:00T+01:00
Is this a standard date time format? It seems to have a timezone in the end. So it doesnt seem to be either ISO 8601 or UTC ?
How do I output this in Javascript for todays date ?
I have the following date time 2012-05-01T00:00:00T+01:00
Is this a standard date time format? It seems to have a timezone in the end. So it doesnt seem to be either ISO 8601 or UTC ?
How do I output this in Javascript for todays date ?
There are several options for you
let inputFormat = "2012-05-01T00:00:00T+01:00"
let customDateFormat = new Date(sample.split("+")[0].split("T").join(" "))
OR best way => moment.js
let inputFormat = "2012-05-01T00:00:00T+01:00"
let customDateFormat = moment(sample.split("+")[0].split("T").join(" ")).format("DD/MM/YYYY")