[Rails] Rails default date format

2010-05-14 Thread Hemant Bhargava
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

Re: [Rails] Rails default date format

2010-05-14 Thread ChenJie|抽屉
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/.

Re: [Rails] Rails default date format

2010-05-14 Thread Colin Law
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