Class: Date

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

Instance Method Summary collapse

Instance Method Details

#slashString

Returns YYYY/MM/DD style of date

Examples:

Date.today.slash # => 2015/01/31

Returns:


6
7
8
# File 'lib/core_ext/date.rb', line 6

def slash
  strftime('%Y/%m/%d')
end