JavaScript, Date and ISO 8601 part4

image
Her: How does your perfect date look like?
Me: Well the only format I can accept is `YYYY-MM-ddTHH:mm:ssZ` (ISO 8601).

Image by Tammy McGary

If you were reading past articles you know I had fun with dates and JavaScript in the past (Part 1, Part 2 and Part 3).

Today I revisited the issue as I was reviewing code at customer site.

I ran my test again and…. <drumroll/>

All engines in all browser calculate the same date!

image

Chrome 65

image

Firefox 60

image

Opera 52

image

Edge 41

image

Internet Explorer 11

Best

Daniel

Add comment

Loading