Class: Date
- Inherits:
-
Object
- Object
- Date
- Defined in:
- lib/fm_date.rb
Class Method Summary collapse
Instance Method Summary collapse
- #to_fm ⇒ Object (also: #convert_to_fm)
Class Method Details
.from_fm(fm_date) ⇒ Object
6 7 8 |
# File 'lib/fm_date.rb', line 6 def self.from_fm(fm_date) Date.strptime(fm_date, '%m/%d/%Y') end |
Instance Method Details
#to_fm ⇒ Object Also known as: convert_to_fm
2 3 4 |
# File 'lib/fm_date.rb', line 2 def to_fm strftime('%m/%d/%Y') end |