method

new_date

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: Date
new_date(year, mon, mday) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activemodel/lib/active_model/type/date.rb, line 66
        def new_date(year, mon, mday)
          unless year.nil? || (year == 0 && mon == 0 && mday == 0)
            ::Date.new(year, mon, mday) rescue nil
          end
        end
Register or log in to add new notes.