From: Sebastian Hungerecker Date: 2008-01-14T02:28:17+09:00 Subject: Re: regualr expression (need help) Heinrich Piard wrote: > 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 Time.parse("Not After : Apr 3 11:13:11 2008 GMT") will give you a Time object. You can get the desired string from that quite easily (using strftime for example, or just using Time#day, Time#month and Time#year directly). HTH, Sebastian -- Jabber: sepp2k@jabber.org ICQ: 205544826