app/forms/waste_carriers_engine/person_form.rb
# If we can make the date fields positive integers, use those integers
# Otherwise, return nil
If we can make the date fields positive integers, use those integers
Otherwise, return nil
If we can make the date fields positive integers use those integers Otherwise return nil
def format_date_field_value(value)
      integer_value = value.to_i
      return integer_value if integer_value.positive?
    end
def format_date_field_value ( value ) integer_value = value . to_i return integer_value if integer_value . positive? end
If we can make the date fields positive integers, use those integers
Otherwise, return nil
If we can make the date fields positive integers use those integers Otherwise return nil
# If this isn't a valid integer, .to_i returns 0
value