class Date

Public Instance Methods

iso8601() click to toggle source

Return the date as a String formatted according to ISO 8601.

# File lib/ext/ext.rb, line 56
def iso8601
  ::Time.utc(year, month, day, 0, 0, 0, 0).iso8601
end