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
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
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
3 matches
Mail list logo