I am trying to format the created_at value of an object for display in the view. Just for testing purposes, right now I''m doing - puts @the_object.created_at.strftime(''%B %e, %G'') puts @the_object.created_at.to_date.strftime(''%B %e, %G'') The first line doesn''t output anything, while the second one outputs the date in the correct format. Why do I have to convert it to a Date object first? Doesn''t Time have a strftime method? Thanks! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---