Module: Conschedule::ApplicationHelper
- Defined in:
- app/helpers/conschedule/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#fdtime(date_time, format) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'app/helpers/conschedule/application_helper.rb', line 4 def fdtime(date_time,format) formats = { time: "%I:%M%P", date: "%A, %B %-d, %Y", month_date: "%B %-d, %Y" } date_time.strftime(formats[format]) end |