Class: DateTime
- Inherits:
-
Object
- Object
- DateTime
- Defined in:
- lib/wackamole/core_ext/date_time.rb
Instance Method Summary collapse
-
#to_date_id ⇒ Object
————————————————————————— Convert a datetime to an id ie => 20100101.
Instance Method Details
#to_date_id ⇒ Object
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 |