Code example for SimpleDateFormat

Methods: toPattern

  public void setParameterFromObject(final Object o)
      throws ObjectFactoryException 
    final SimpleDateFormat format = (SimpleDateFormat) o;
    setParameter("pattern", format.toPattern());
   * Creates an object based on this description. 
   * @return The object. 
  public Object createObject()
    final SimpleDateFormat format = (SimpleDateFormat) super.createObject();
    if (getParameter("pattern") != null) 
      format.applyPattern((String) getParameter("pattern"));
Connect your IDE to all the code out there  Get Codota for Java