Mark Thomas wrote:
>>
>> I end up getting the ArgumentError - invalid date. Please let me know if
>> I am doing anything incorrect here.
> 
> Doesn't look like it.
>   Date.strptime("05/16/2008", '%m/%d/%Y').to_s
> works for me.

Does it have anything to do with the version of Ruby/Rails ? I'm using 
Rails 1.1.6 and Ruby 1.8.4.  Another wierd thing about this is 
dateStr.to_time works while dateStr.to_date again gives me the same 
exception.
-- 
Posted via http://www.ruby-forum.com/.