method
iso8601
v1_9_3_125 -
Show latest stable
- Class:
Date
iso8601(p1 = v1, p2 = v2)public
Creates a new Date object by parsing from a string according to some typical ISO 8601 formats.
For example:
Date.iso8601('2001-02-03') #=> #<Date: 2001-02-03 ...> Date.iso8601('20010203') #=> #<Date: 2001-02-03 ...> Date.iso8601('2001-W05-6') #=> #<Date: 2001-02-03 ...>