Method: String#to_date

Defined in:
lib/cotcube-helpers/swig/date.rb

#to_dateObject



28
29
30
# File 'lib/cotcube-helpers/swig/date.rb', line 28

def to_date
  Date::strptime(self, "%Y-%m-%d")
end