src/main/java/com/teamunify/i18n/I.java
public static void addCustomDateFormat(int formatID, String lang, String country, String dateFormatSpec,
                                         boolean allowedOnInput) {
    Locale l = new Locale(lang, country);
    SimpleDateFormat format = new SimpleDateFormat(dateFormatSpec, l);
    format.setLenient(true);
    dateFormatVendor.registerFormat(formatID, l, format, allowedOnInput);
  }
/**
   * Add support for a specific date format (for input and output) that extends the Java built-in SHORT,
   * MEDIUM, and LONG. The custom date format follows the same resolution rules as translations. The incoming locale
   * includes country (e.g. en_US), the the API will first look for custom date formats registered on that exact Locale.
   * If none are found, it will try dropping the country. If there are still none found, your date/time translation will
   * throw an exception. So be <em>sure</em> to register some kind of formatter for each of your possible languages.
   * <p/>
   * <p/>
   * By adding a custom date format, you can affect input and/or output. Your formatter will be selectable on output
   * using the formatID you specify, and will be used as an additional interpreter of dates/times on input functions
   * (after the built-in ones are tried).
   * <p/>
   * <p/>
   * IMPORTANT: If you try to set the same formatID/locale combination more than once, the first one wins. You cannot
   * change registrations.
   *
   * @param formatID       Your custom format ID. MUST be greater than 10.
   * @param lang           The two-letter language
   * @param country        The two-letter country
   * @param dateFormatSpec An acceptable SimpleDateFormat specification for format
   * @param allowedOnInput True if you want users to be able to use this format for input of dates
   */
Add support for a specific date format (for input and output) that extends the Java built-in SHORT,
MEDIUM, and LONG. The custom date format follows the same resolution rules as translations. The incoming locale
includes country , the the API will first look for custom date formats registered on that exact Locale.
If none are found, it will try dropping the country. If there are still none found, your date/time translation will
throw an exception. So be sure to register some kind of formatter for each of your possible languages.


By adding a custom date format, you can affect input and/or output. Your formatter will be selectable on output
using the formatID you specify, and will be used as an additional interpreter of dates/times on input functions
(after the built-in ones are tried).


IMPORTANT: If you try to set the same formatID/locale combination more than once, the first one wins. You cannot
change registrations.

@param formatID       Your custom format ID. MUST be greater than 10.
@param lang           The two-letter language
@param country        The two-letter country
@param dateFormatSpec An acceptable SimpleDateFormat specification for format
@param allowedOnInput True if you want users to be able to use this format for input of dates
Add support for a specific date format ( for input and output ) that extends the Java built - in SHORT MEDIUM and LONG . The custom date format follows the same resolution rules as translations . The incoming locale includes country the the API will first look for custom date formats registered on that exact Locale . If none are found it will try dropping the country . If there are still none found your date / time translation will throw an exception . So be sure to register some kind of formatter for each of your possible languages . By adding a custom date format you can affect input and / or output . Your formatter will be selectable on output using the formatID you specify and will be used as an additional interpreter of dates / times on input functions ( after the built - in ones are tried ) . IMPORTANT : If you try to set the same formatID / locale combination more than once the first one wins . You cannot change registrations . @param formatID Your custom format ID . MUST be greater than 10 . @param lang The two - letter language @param country The two - letter country @param dateFormatSpec An acceptable SimpleDateFormat specification for format @param allowedOnInput True if you want users to be able to use this format for input of dates
public static void addCustomDateFormat(int formatID, String lang, String country, String dateFormatSpec,
                                         boolean allowedOnInput) {
    Locale l = new Locale(lang, country);
    SimpleDateFormat format = new SimpleDateFormat(dateFormatSpec, l);
    format.setLenient(true);
    dateFormatVendor.registerFormat(formatID, l, format, allowedOnInput);
  }
public static void addCustomDateFormat ( int formatID , String lang , String country , String dateFormatSpec , boolean allowedOnInput ) { Locale l = new Locale ( lang , country ) ; SimpleDateFormat format = new SimpleDateFormat ( dateFormatSpec , l ) ; format . setLenient ( true ) ; dateFormatVendor . registerFormat ( formatID , l , format , allowedOnInput ) ; }
Add support for a specific date format (for input and output) that extends the Java built-in SHORT,
 MEDIUM, and LONG.
Add support for a specific date format ( for input and output ) that extends the Java built - in SHORT MEDIUM and LONG .