From: Brian Candler Date: 2011-04-07T19:55:09+09:00 Subject: Re: convert string to datetime "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") => # -- Posted via http://www.ruby-forum.com/.