Sha256: c13412b079546149b812dd8f579ab2d8ecf4a32a3023ae85de988358834ed5a7
Contents?: true
Size: 505 Bytes
Versions: 14
Compression:
Stored size: 505 Bytes
Contents
module Voom module Presenters module Helpers module Date LONG_FORMAT='%m/%d/%Y' SHORT_FORMAT='%d %b %Y' def format_date(date, format: '%m/%d/%Y') date ? date.strftime(format) : '' end def format_date_long(time, format: nil) format_date(time, format: format||LONG_FORMAT) end def format_date_short(time, format: nil) format_date(time, format: format||SHORT_FORMAT) end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems