From: Fan Jin Date: 2011-04-08T10:55:17+09:00 Subject: Re: convert string to datetime Brian Candler wrote in post #991430: > "Jesús Gabriel y Galán" wrote in post > #991424: >> DateTime#parse: > > Or DateTime.strptime, if you want to be explicit about the format. > >>> DateTime.strptime("20110309","%Y%m%d") > => # Thanks mate, it works :) -- Posted via http://www.ruby-forum.com/.