Class: Time

Inherits:
Object show all
Defined in:
lib/ab_admin/core_ext/other.rb

Instance Method Summary collapse

Instance Method Details

#formatted_dateObject


12
13
14
# File 'lib/ab_admin/core_ext/other.rb', line 12

def formatted_date
  I18n.l(self, format: '%d.%m.%Y')
end

#formatted_datetimeObject


8
9
10
# File 'lib/ab_admin/core_ext/other.rb', line 8

def formatted_datetime
  I18n.l(self, format: '%d.%m.%Y %H:%M')
end