I am using Time.parse for creating time object like
start_date =
Time.parse("#{event.from_year.to_s}-#{event.from_month.to_s}-#{event.from_day.to_s}
#{event.from_time.to_s}")

  end_date =
Time.parse("#{event.to_year.to_s}-#{event.to_month.to_s}-#{event.to_day.to_s}
#{event.to_time.to_s}")

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

please help me to find solution.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to