From: Daniel Finnie Date: 2008-01-14T02:33:15+09:00 Subject: Re: regualr expression (need help) ------=_Part_10070_2855410.1200245601494 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I would create a time object and then format it how you like. Time.parse(string).strftime(format_string) Look up the docs for Time#strftime to determine the format string. On Jan 13, 2008 12:04 PM, Heinrich Piard wrote: > Hi all, > > anybody an idea how to transform the date out of this string > Not After : Apr 3 11:13:11 2008 GMT > > to > > 2008-4-3 > > > Help is very apreciated!! > > Thx. > > Henry > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_10070_2855410.1200245601494--