Parsing a date using Date#strptime

require 'date'
string = "20120723"
date = Date.strptime(string,"%Y%m%d")

Resources