On 7 June 2011 16:25, Fernando Aureliano <m...@fernandoaureliano.com> wrote: > Have some way to I get a formated date/time on rails? > I know I can get date/time by timestamps > created_at :datetime > updated_at :datetime > Bu, I can get with an formated way when I call the date/time on a block? > like php for example ("M", "D", "Y") and not the complete information > "2000-01-01 14:26:00 UTC"
You can use strftime to format a date/time 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.