I have date in ISO-format like:
2016-02-17T16:40:30
How can I convert it to a human-readable date, for example:
17 Feb 2016 16:40
First of all, you need to create a date using your original date string.
var d = new Date('2016-02-17T16:40:30');
And then you can use this to fetch a readable date format:
d.toDateString();
Will return:
Wed Feb 17 2016
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With