Topic: strptime issue
I am using DateTime.strptime to get a DateTime object from a date formatted as d/m/y
using the following code
fmt = '%d/%m/%y'
from = DateTime.strptime(params[:from]).yday
rescue ArgumentError => arg_exc
where params[:from] is like 23/01/2007 but I get an ArgumentError exception with the message
"3 elements of civil date are necessary".
Anyone know what is the correct use of this library?