From: Michael Guterl Date: 2008-08-06T22:50:36+09:00 Subject: Re: is there a way to AutoParse a string to another type - e.g. if a Date format then date, else if integer than Integer etc ????? On Wed, Aug 6, 2008 at 1:50 AM, Greg Hauptmann wrote: > umm...Date parse doesn't seem to be that good, for example see below > >>> Loading development environment (Rails 2.1.0) >>> > ?> Date.parse("123", "%d/%m/%Y") > => Fri, 02 May 2008 >>> Date.parse("123", "%d/%m/%Y").class > => Date >>> > FWIW, it is assuming you want the 123rd day of the year. Michael Guterl