Friend ,

In my database : date time is 2012-01-07.
In Html page I want for
My Preferred Time is 7th Jan 2012.

How I do that!

phoesan

--
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 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 Apr 25, 2012 at 7:06 am

    On 25 April 2012 06:38, phoe san wrote:
    Friend ,

    In my database : date time is 2012-01-07.
    In Html page I want for
    My Preferred Time is 7th Jan 2012.

    How I do that!
    First google for
    ruby format date

    The first hit will likely point you to strftime.

    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.
  • Phoe san at Apr 25, 2012 at 7:29 am
    Thank Colin,

    with strftime , 7 Jan 2012 is ok .
    I get 7th Jan 2012.

    phoesan

    --
    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 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.
  • Phoe san at Apr 25, 2012 at 7:38 am
    I got it by

    http://stackoverflow.com/questions/1081926/how-do-i-format-a-date-in-ruby-to-include-rd-as-in-3rd

    Thank Colin,

    --
    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 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
postedApr 25, '12 at 5:38a
activeApr 25, '12 at 7:38a
posts4
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

Phoe san: 3 posts Colin Law: 1 post

People

Translate

site design / logo © 2022 Grokbase