pub fn date(string: &str) -> Result<Date, String>
Expand description
Parses a date string.
A string can have one of the following formats:
2015-11-02
or20151102
2015-W45-01
or2015W451
2015-306
or2015306
§Example
let date = iso8601::date("2015-11-02").unwrap();