Greg Hauptmann wrote:
> excellent thanks,
> You'd think Ruby would provide some internationalisation type way of 
> solving
> this?  (e.g. specifying your location/country or something).  Guess not?

Hello,

Unfortunately for me, the solution by Ray doesn't seem to work too. For 
instance I'm doing this..

dateStr = params[:startdate].to_s
logger.info "date - " + dateStr
startdate =Date.strptime(dateStr, '%m/%d/%Y').to_s

and though I get the string quite correctly as

date - 05/16/2008

I end up getting the ArgumentError - invalid date. Please let me know if 
I am doing anything incorrect here.

Regards,
Shankar.
-- 
Posted via http://www.ruby-forum.com/.