I think what you want is date.strftime("%d/%m/%Y")
2011/6/7 Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
> On 7 June 2011 16:25, Fernando Aureliano
<mail-7WGqr3rU1tU38Fpv8Ij67aBKnGwkPULj@public.gmane.org>
> 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-/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.
>
>
--
Carina Brito Silva
http://twitter.com/carinabs8
http://carinabs8.wordpress.com/
"...Estou disposto a demolir paredes,contruir pontes e acender fogueiras.
Tenho uma grande experiência,um monte de energia,um pouco dessa coisa de
''visão'' e não tenho medo de começar do zero."-Steve Jobs
--
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@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.