The ISO 8601 date format.
Time::Format::ISO_8601_DATE.parse("2016-02-15") # => 2016-02-15 00:00:00Z
Time::Format::ISO_8601_DATE.format(Time.utc(2016, 2, 15, 4, 35, 50)) # => "2016-02-15" Formats a Time into the given io.
Parses a string into a Time.
Parses a string into a Time.
© 2012–2026 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/1.19.0/Time/Format/ISO_8601_DATE.html