Hello All,
How can i convert the date format 2010-01-01 to rails default date
format. I mean to Fri, 14 May 2010?
Is there any built in function for it.. Googled but ..?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
On Fri, May 14, 2010 at 17:50, Hemant Bhargava li...@ruby-forum.com wrote:
Hello All,
How can i convert the date format 2010-01-01 to rails default date
format. I mean to Fri, 14 May 2010?
Is there any built in function for it.. Googled but ..?
--
Posted via http://www.ruby-forum.com/.
On 14 May 2010 10:50, Hemant Bhargava li...@ruby-forum.com wrote:
Hello All,
How can i convert the date format 2010-01-01 to rails default date
format. I mean to Fri, 14 May 2010?
You can use Date.strptime to parse it then strftime to format it to
whatever format you like.
Colin
--
You
3 matches
Mail list logo