def select_simple_date(date_input, value, format = nil)
      value = value.strftime format unless format.nil?

      date_input.set "#{value}\e"
    end
def select_simple_date(date_input, value, format = nil)
      value = value.strftime format unless format.nil?

      date_input.set "#{value}\e"
    end
Selects a date by filling the input field
 @param date_input the input field
 @param value [Date] the date to set
 @param format [String, nil] a valid date format used to format value