From: "David A. Black" Date: 2008-04-05T03:51:01+09:00 Subject: Re: funny date parsing Hi -- On Sat, 5 Apr 2008, Junkone wrote: > i enter 2008 and it becomes 0008 > > irb(main):009:0> Date.parse("04-Feb-08").strftime('%Y-%m-%d') > => "0008-02-04" You've entered 08, not 2008. David -- Rails training from David A. Black and Ruby Power and Light: ADVANCING WITH RAILS April 14-17 New York City INTRO TO RAILS June 9-12 Berlin ADVANCING WITH RAILS June 16-19 Berlin See http://www.rubypal.com for details and updates!