Flowdock
method

iso8601

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - 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 ...>
Show source
Register or log in to add new notes.