Date.parse : parse « Date « Ruby






Date.parse

require 'date'
puts Date.parse('2/9/2007').to_s
puts Date.parse('Wednesday, January 10, 2001').to_s

 








Related examples in the same category

1.Date.parse('2/9/07')
2.Parsing Times and Dates