Invalid date in safari

For me implementing a new library just because Safari cannot do it correctly is too much and a regex is overkill.
Here is the oneliner:

console.log (new Date('2011-04-12'.replace(/-/g, "https://stackoverflow.com/")));

Leave a Comment