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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

  • Colin Law at Jan 11, 2012 at 3:13 pm

    On 11 January 2012 13:24, Kapil Kaligotla 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
    it
    Time.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@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Angelo Cordova at Jan 11, 2012 at 5:00 pm

    On 11 ene, 10:24, Kapil Kaligotla 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
    it
    Maybe, 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@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedJan 11, '12 at 1:24p
activeJan 11, '12 at 5:00p
posts3
users3
websiterubyonrails.org
irc#RubyOnRails

People

Translate

site design / logo © 2022 Grokbase