Date.parse('2/9/07') : parse « Date « Ruby






Date.parse('2/9/07')

require 'date'
puts Date.parse('2/9/07').to_s                          # => "0007-02-09"

 

Related examples in the same category

1.Date.parse
2.Parsing Times and Dates