Re: [Rails] DateTime format

2010-02-18 Thread Conrad Taylor
On Thu, Feb 18, 2010 at 7:57 AM, Ahmed Abdelsalam wrote: > Hello, > > I have an application which stores date in DateTime format, and displays > it as long format, for example: November, 4, 2009 > > I want to extract month name and year only from the DateTime format to > display it as: November 20

Re: [Rails] DateTime format

2010-02-18 Thread shyam mohan
use this show_time = Time.now.strftime("%B %Y") Regards, Shyam +91-971-618-9650 sh...@crypsis.net On Thu, Feb 18, 2010 at 9:27 PM, Ahmed Abdelsalam wrote: > Hello, > > I have an application which stores date in DateTime format, and displays > it as long format, for example: November, 4, 2009

[Rails] DateTime format

2010-02-18 Thread Ahmed Abdelsalam
Hello, I have an application which stores date in DateTime format, and displays it as long format, for example: November, 4, 2009 I want to extract month name and year only from the DateTime format to display it as: November 2009. Any help? -- Posted via http://www.ruby-forum.com/. -- You rec