Converting strings to other objects
Methods
Public Instance methods
[ show source ]
# File vendor/rails/activesupport/lib/active_support/core_ext/string/conversions.rb, line 13 13: def to_date 14: ::Date.new(*ParseDate.parsedate(self)[0..2]) 15: end
Form can be either :utc (default) or :local.
[ show source ]
# File vendor/rails/activesupport/lib/active_support/core_ext/string/conversions.rb, line 9 9: def to_time(form = :utc) 10: ::Time.send(form, *ParseDate.parsedate(self)) 11: end