Class: Date

Inherits:
Object show all
Defined in:
lib/platform_helpers/date_time.rb

Instance Method Summary collapse

Instance Method Details

#to_boolObject



8
9
10
11
12
13
14
# File 'lib/platform_helpers/date_time.rb', line 8

def to_bool
  if "#{self}" != ''
    return true
  else
    return false
  end
end

#to_usObject



15
16
17
# File 'lib/platform_helpers/date_time.rb', line 15

def to_us
  "#{self.month}/#{self.day}/#{self.year}"
end