You have to use double quotes
use strftime("%Y-%m-%d %H:%M:%S")
Regards
Senthil Raja S P
On Sat, Mar 14, 2009 at 6:19 AM, Lee D'oéjgi <[email protected]> wrote:
> I'm trying to reformat the following DateTime: 'Fri Mar 13 13:00:52 -0700
> 2009' to be '2009-03-13 13:00:42', but can't quite seem to get it. I've
> tried strftime('%a %b %d %H %M %S -0700 %Y') amongst other things and google
> isn't helping...
>
> Any advice?
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---