Formated date/time

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”

Thanks!

You can use strftime to format a date/time

Colin

I think what you want is date.strftime(“%d/%m/%Y”)