Method: Fortifier::DateHelper#american_date
- Defined in:
- app/helpers/fortifier/date_helper.rb
#american_date(date) ⇒ Object
Produces -> 5/21/2007
5 6 7 8 |
# File 'app/helpers/fortifier/date_helper.rb', line 5 def american_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("%-m/%-d/%Y") : date.strftime("%-m/%-d/%Y")) : date end |