I am trying to format some datetimes like this…2007, February the
etc.
2. PM is in uppercase and I would prefer it in lower.
TIA
Since the DATE_FORMATS are simple strftime() formatting specs, you
can’t just create that format. However, you can roll your own (even
making it part of Time if you want) like this:
class Time
def my_time
hr = hour % 12
hr = 12 if hr.zero?
“%d, %s the %s, %d:%02d%s” % [ year, strftime(“%B”),
day.ordinalize,
hr, min, strftime(“%p”).downcase ]
end
end