Date.strptime([string='-4712-01-01'[, format='%F'[, start=ITALY]]]) â date
Class Public methods
Parses the given representation of date and time with the given template,
and creates a date object. strptime does not support specification of
flags and width unlike strftime.
Date.strptime('2001-02-03', '%Y-%m-%d') #=> #<Date: 2001-02-03 ...>
Date.strptime('03-02-2001', '%d-%m-%Y') #=> #<Date: 2001-02-03 ...>
Date.strptime('2001-034', '%Y-%j') #=> #&