iso8601

Date.iso8601(string='-4712-01-01'[, start=ITALY]) â date
Class Public methods

Creates a new Date object by parsing from a string according to some typical ISO 8601 formats.

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 ...>
doc_ruby_on_rails
2015-04-02 10:44:32
Comments
Leave a Comment

Please login to continue.