src/main/java/com/teamunify/i18n/I.java
public static String preferredDateFormat(int fmtID) {
    LanguageSetting s = languageProvider.vend();
    DateFormat formatter = dateFormatVendor.getFormatFor(fmtID, s.locale, DateFormat.SHORT);
    if (formatter != null && formatter instanceof SimpleDateFormat)
      return ((SimpleDateFormat) formatter).toLocalizedPattern();
    else
      return "";
  }
/**
   * Get the date input format accepted by the given formatID (which can be a custom date format you've installed).
   *
   * @param fmtID The formatID. DateFormat.SHORT/LONG/MEDIUM will always work.
   * @return The format string, for display to users, or an empty string if it fails to obtain the pattern.
   */
Get the date input format accepted by the given formatID (which can be a custom date format you've installed).
@param fmtID The formatID.
Get the date input format accepted by the given formatID ( which can be a custom date format you ' ve installed ) . @param fmtID The formatID .
public static String preferredDateFormat(int fmtID) {
    LanguageSetting s = languageProvider.vend();
    DateFormat formatter = dateFormatVendor.getFormatFor(fmtID, s.locale, DateFormat.SHORT);
    if (formatter != null && formatter instanceof SimpleDateFormat)
      return ((SimpleDateFormat) formatter).toLocalizedPattern();
    else
      return "";
  }
public static String preferredDateFormat ( int fmtID ) { LanguageSetting s = languageProvider . vend ( ) ; DateFormat formatter = dateFormatVendor . getFormatFor ( fmtID , s . locale , DateFormat . SHORT ) ; if ( formatter != null && formatter instanceof SimpleDateFormat ) return ( ( SimpleDateFormat ) formatter ) . toLocalizedPattern ( ) ; else return "" ; }
Get the date input format accepted by the given formatID (which can be a custom date format you've installed).
Get the date input format accepted by the given formatID ( which can be a custom date format you ' ve installed ) .