On Apr 4, 2:51=A0pm, "David A. Black" <dbl... / rubypal.com> wrote:
> 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')
> > =3D> "0008-02-04"
>
> You've entered 08, not 2008.
>
> David
>
> --
> Rails training from David A. Black and Ruby Power and Light:
> =A0 =A0ADVANCING WITH RAILS =A0 April 14-17 =A0 =A0 =A0 =A0 =A0New York Ci=
ty
> =A0 =A0INTRO TO RAILS =A0 =A0 =A0 =A0 June 9-12 =A0 =A0 =A0 =A0 =A0 =A0Ber=
lin
> =A0 =A0ADVANCING WITH RAILS =A0 June 16-19 =A0 =A0 =A0 =A0 =A0 Berlin
> Seehttp://www.rubypal.comfor details and updates!

oh ok. but all my date formats are like that and i am trying to import
it. is n't there a y2k rule somewhere on detecting 08 as 2008. i could
be wrong. can someone give me a workaround there.

seede