function addDateInputFormat(locale, format, match, variant) {
    locale.compiledFormats.unshift({
      variant: variant,
      locale: locale,
      reg: regexp('^' + format + '$', 'i'),
      to: match
    });
  }
function addDateInputFormat(locale, format, match, variant) {
    locale.compiledFormats.unshift({
      variant: variant,
      locale: locale,
      reg: regexp('^' + format + '$', 'i'),
      to: match
    });
  }
function addDateInputFormat ( locale , format , match , variant ) { locale . compiledFormats . unshift ( { variant : variant , locale : locale , reg : regexp ( '^' + format + '$' , 'i' ) , to : match } ) ; }
General helpers
General helpers