From: James Edward Gray II Date: 2005-04-13T22:45:30+09:00 Subject: Re: Really quick question - How do I convert a string to a date On Apr 13, 2005, at 8:36 AM, Glenn Smith wrote: > I need a 'Date' object which is converted from a string value > containing something like '13/04/2005' (english format date). > > Help! This isn't a particularly brilliant answer, so hopefully someone will do better: ruby -r date -e 'puts Date.parse("13/04/2005".split("/").values_at(1, 0, 2).join("/"))' Hope that helps. James Edward Gray II