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:
parent
2cca9a9d09
commit
f6c2b06d12
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue