Date Time Change in View Section

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

First google for
ruby format date

The first hit will likely point you to strftime.

Colin

Thank Colin,

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

phoesan

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,