If you specifically want to "February 1, 2011 11.00", you will need to add your own DATE_FORMATS and call it.
Time::DATE_FORMATS[:custom_ordinal] = lambda { |time| time.strftime("%B #{ActiveSupport::Inflector.ordinalize(time.day)} %Y %H.%M") }
puts Time.now.to_s(:custom_ordinal)
If all you need is an ordinal date and "February 28, 2011 02:12" works, then Time.now.to_s (: long_ordinal) is called
source
share