Forum: Ruby on Rails parse problem

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
3548d30217e9921c410db19ce8ce38d0?d=identicon&s=25 Sunny Bogawat (sunny_bogawat)
on 2009-02-24 09:06
I am using Time.parse for creating time object like
start_date =

  end_date =

But when i pass input year to this as 1993 then after parsing it give me
2001-01-02 20:00:00 like this? why not it give me year as a 1993?

please help me to find solution.
A91bd6cef23eb3516245a092e196c4da?d=identicon&s=25 Maurício Linhares (mauricio)
on 2009-02-24 17:57
(Received via mailing list)
Why are you parsing if you have all the data?

Just create a Time object with your parameters. Please read the docs

Maurício Linhares (pt-br) |

On Tue, Feb 24, 2009 at 5:06 AM, Sunny Bogawat
This topic is locked and can not be replied to.