Date.parseIso8601 constructor
Date.parseIso8601(
- String dateString
Parses given String to a new Date object. Besides ISO 8601 works with every format of String that DateTime.parse would work with. Performs validation. Throws FormatException when the input can't be parsed.
Implementation
Date.parseIso8601(final String dateString) : _date = _truncateTimeOfDay(DateTime.parse(dateString));