From: Max Williams Date: 2009-09-01T23:14:11+09:00 Subject: Re: Date & time validation You could run it through a rough regex match first and then Date parse it using strptime. date = (string =~ /^\d{4}\/\d{2}\/\d{2}$/) && (Date.strptime(string,"%Y/%m/%d")) -- Posted via http://www.ruby-forum.com/.