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