Code example for SimpleDateFormat

Methods: toPattern

0
  public String getFormatString()
  { 
    if (getFormat() instanceof SimpleDateFormat)
    { 
      final SimpleDateFormat decFormat = (SimpleDateFormat) getFormat();
      return decFormat.toPattern();
    } 
    return null; 
  } 
 
  /** 
   * Defines the format string of the used date format. This method will replace the date format instance of this 
   * factory. If the format string is null, the default format string of the current locale is used. 
   * 
   * @param formatString the formatstring of the date format instance. 
   */ 
  public void setFormatString(final String formatString)
  { 
    if (formatString == null)
    { 
      setFormat(null);