Date Format in JS doesn't work as expected in JavaScript Posted May 9, 2020 Formatting dates seem to be not working in the examples of W3 schools. Any ideas why? https://www.w3schools.com/js/js_date_formats var d = new Date("2015-03-25"); results in:Wed Mar 25 2015 01:00:00 GMT+0100 (Central European Standard Time)
Date Format in JS doesn't work as expected
in JavaScript
Posted
Formatting dates seem to be not working in the examples of W3 schools. Any ideas why?
https://www.w3schools.com/js/js_date_formats
results in:
Wed Mar 25 2015 01:00:00 GMT+0100 (Central European Standard Time)