Skip to content

Commit f6c2b06

Browse files
authored
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.
1 parent 2cca9a9 commit f6c2b06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/05-data-types/11-date/1-new-date/solution.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ We could also create a date from a string, like this:
1313

1414
```js run
1515
//new Date(datastring)
16-
let d2 = new Date("February 20, 2012 03:12:00");
16+
let d2 = new Date("2012-02-20T03:12");
1717
alert( d2 );
1818
```

0 commit comments

Comments
 (0)