From: Robert Klemme Date: 2008-05-10T21:40:02+09:00 Subject: Re: Format natural date On 10.05.2008 13:03, John Butler wrote: > Is there a way to format a natural date like May 7, 2008 to 07/05/2008. > Ive tried > Date.strptime("May 7, 2008", '%d/%m/%Y') without success? You seem to want to _reformat_ a date string. But the code you show just _parses_ a string into a Date. If you want to reformat your string you first need to parse it and then format it. > Is it possible to this in a one line with ruby? Yes. You're almost there but you need to format your format string so it matches the date strings that you are trying to parse. Since there is nowhere a slash in your date string it comes as no surprise that the format does not match. :-) Kind regards robert