Method: Fortifier::DateHelper#short_month_date

Defined in:
app/helpers/fortifier/date_helper.rb

#short_month_date(date) ⇒ Object

Produces => Mar 10,2010



40
41
42
43
# File 'app/helpers/fortifier/date_helper.rb', line 40

def short_month_date(date)
  return nil if date.nil?
  (date.is_a?(Date) || date.is_a?(Time)) ? (date.is_a?(Time) ? date.in_time_zone(DISPLAY_TIME_ZONE).strftime("%b %-d, %Y") : date.strftime("%b %-d, %Y")) : date
end