Method: String#to_date

Defined in:
lib/sugarcube-nsdate/date_parser.rb

#to_dateObject

Use NSDataDetector to parse a string containing a date or duration. These can be of the form:

"tomorrow at 7:30 PM" "11.23.2013" "from 7:30 to 10:00 AM"

etc.



80
81
82
# File 'lib/sugarcube-nsdate/date_parser.rb', line 80

def to_date
  SugarCube::DateParser.parse_date(self)
end