Look up the date class in the prag prog's book. It explains how to  
create dates. Date.new(2008,12,30) for example.

Blog: http://random8.zenunit.com/
Learn rails: http://sensei.zenunit.com/

On 06/02/2009, at 8:42 PM, Sunny Bogawat <[email protected] 
 > wrote:

>
> Hi,
>
> In one of my application i have to create a date obj like 2009-02-05
> 23:26:35
>   but for this i have following input which is integer.
>  form_day = 05, from_month = 02 from_year= 2009 and from_time=12:00:00
>
>    Please  suggest a best solution for it?
> -- 
> 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