Class: DateTime

Inherits:
Object
  • Object
show all
Defined in:
lib/wackamole/core_ext/date_time.rb

Instance Method Summary collapse

Instance Method Details

#to_date_idObject


Convert a datetime to an id ie => 20100101



5
6
7
# File 'lib/wackamole/core_ext/date_time.rb', line 5

def to_date_id
  self.strftime( "%Y%m%d").to_i
end