Brian Candler wrote in post #991430:
> "Jess Gabriel y Galn" <jgabrielygalan / gmail.com> wrote in post
> #991424:
>> DateTime#parse:
>
> Or DateTime.strptime, if you want to be explicit about the format.
>
>>> DateTime.strptime("20110309","%Y%m%d")
> => #<DateTime: 4911259/2,0,2299161>

Thanks mate, it works :)