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
8 9 10 |
# File 'lib/fm_date.rb', line 8 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
4 5 6 |
# File 'lib/fm_date.rb', line 4 def to_fm strftime('%m/%d/%Y') end |