# File lib/dbi/sql.rb, line 73 def as_date(str) return nil if str.nil? ary = ParseDate.parsedate(str) DBI::Date.new(*ary[0,3]) rescue nil end