------=_Part_13074_20538116.1212907139724 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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? On Sun, Jun 8, 2008 at 3:13 PM, Ray Baxter <ray.baxter / gmail.com> wrote: > > On Jun 7, 2008, at 9:43 PM, miles.sterrett / gmail.com wrote: > > On Jun 8, 12:04 am, Greg Hauptmann <greg.hauptmann.r... / gmail.com> >> wrote: >> >>> but that's not the format I get the data in :( I'm in Australia. >>> >>> Any ideas? >>> >>> On 6/8/08, Nicolas Pelletier <nicolas.pelleti... / gmail.com> wrote: >>> >>> Hello, >>>> >>> >>> On Sun, Jun 8, 2008 at 12:35 PM, Greg Hauptmann >>>> <greg.hauptmann.r... / gmail.com> wrote: >>>> >>> >>> Date.parse("28/03/2008") gives me an error? >>>>> >>>> >>> Try: >>>> >>> >>> Date.parse("03/28/2008") >>>> >>> >>> -- >>>> Nico >>>> >>> >>> >>> >> Perhaps this link I found can be of use: >> >> http://source.mihelac.org/2006/9/13/parsing-european-date-format-in-ruby-rails >> > > That would work, but so would this: > > Date.strptime('28/03/2008', '%d/%m/%Y') > > > > Ray > > > > ------=_Part_13074_20538116.1212907139724--