I am new learner in rails, i am using rails 3.0.10 . I want to use the date and and time in my project, please tell me the better way to use it -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 11 January 2012 13:24, Kapil Kaligotla <kapil.kaligotla-C8lSLueJBA4oM3ANB2zruQ@public.gmane.org> wrote:> I am new learner in rails, i am using rails 3.0.10 . I want to use the > date and and time in my project, please tell me the better way to use > itTime.now will return the current date and time if that is what you mean. Have a look at the docs for the Time class. Colin -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 11 ene, 10:24, Kapil Kaligotla <kapil.kaligo...-C8lSLueJBA4oM3ANB2zruQ@public.gmane.org> wrote:> I am new learner in rails, i am using rails 3.0.10 . I want to use the > date and and time in my project, please tell me the better way to use > itMaybe, you should take a look at this http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.