I use the datepicker to pick a date and send it to the server.
When I log the JS value I get the correct result:
Tue Mar 22 2016 00:00:00 GMT+0100 (Mitteleuropäische Zeit)
Those two strings represent the same time. One is in UTC, i.e. GMT +0, which you can see from the
Z ending. The other is in a different timezone, specifically GMT +1 hour.
var d1 = new Date('Tue Mar 22 2016 00:00:00 GMT+0100'); var d2 = new Date('2016-03-21T23:00:00.000Z'); Number(d1); // 1458601200000 Number(d2); // 1458601200000
Generally this is a good thing. Dealing in timezones gets very confusing. I find it best for a server to always deal in UTC.