Method: String#to_chronic_date
- Defined in:
- lib/smarter_dates/chronic_strings.rb
#to_chronic_date ⇒ Object
:call-seq: to_chronic_date
Parses a string into a Date object using the same methods as .to_chronic_datetime
22 23 24 25 |
# File 'lib/smarter_dates/chronic_strings.rb', line 22 def to_chronic_date obj = to_chronic_datetime obj && obj.to_date end |