From: Glenn Smith Date: 2005-04-13T23:01:08+09:00 Subject: Re: Really quick question - How do I convert a string to a date Thanks guys - I'm getting jumpy about my demo tomorrow! G On 4/13/05, James Edward Gray II wrote: > On Apr 13, 2005, at 8:49 AM, WATANABE Hirofumi wrote: > > > Hi, > > > > Glenn Smith writes: > > > >> I need a 'Date' object which is converted from a string value > >> containing something like '13/04/2005' (english format date). > > > > % ruby -rdate -e 'puts Date.strptime("13/04/2005", "%d/%m/%Y")' > > 2005-04-13 > > I knew there had to be a clever solution. Nice! > > James Edward Gray II > > -- All the best Glenn Aylesbury, UK