Module: WebfleetConnect::Helpers::DateFormatHelper
- Included in:
- Params::RangefromString
- Defined in:
- lib/webfleet_connect/helpers/date_format_helper.rb
Instance Method Summary collapse
Instance Method Details
#to_de(datetime) ⇒ Object
2 3 4 |
# File 'lib/webfleet_connect/helpers/date_format_helper.rb', line 2 def to_de(datetime) datetime.strftime('%d.%m.%Y %H:%M:%S') end |
#to_en(datetime) ⇒ Object
6 7 8 |
# File 'lib/webfleet_connect/helpers/date_format_helper.rb', line 6 def to_en(datetime) datetime.strftime('%d/%m/%Y %H:%M:%S') end |
#to_nl ⇒ Object
10 11 12 |
# File 'lib/webfleet_connect/helpers/date_format_helper.rb', line 10 def to_nl datetime.strftime('%d-%m-%Y %H:%M:%S') end |