Date task solution: use standard date time string

The Date article only explains standard strings for date parsing.
Non-standard strings are implementation dependent and should
not be used.
This commit is contained in:
Jeff Chase 2022-03-01 01:55:01 -05:00 committed by GitHub
parent 2cca9a9d09
commit f6c2b06d12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,6 @@ We could also create a date from a string, like this:
```js run
//new Date(datastring)
let d2 = new Date("February 20, 2012 03:12:00");
let d2 = new Date("2012-02-20T03:12");
alert( d2 );
```