Update formatting

This commit is contained in:
Isabelle Viktoria Maciohsek
2022-01-30 12:01:08 +02:00
parent 48790982c1
commit e9019d4c20
11 changed files with 12 additions and 12 deletions

View File

@ -7,7 +7,7 @@ lastUpdated: 2020-11-29T12:16:43+02:00
Checks if the given string is valid in the simplified extended ISO format (ISO 8601).
- Use `new Date()` to create a date object from the given string.
- Use the `Date` constructor to create a `Date` object from the given string.
- Use `Date.prototype.valueOf()` and `Number.isNaN()` to check if the produced date object is valid.
- Use `Date.prototype.toISOString()` to compare the ISO formatted string representation of the date with the original string.