This method of the DateDataFormat class retrieves the custom format string.
public String getCustomFormat();
Returns the current custom format string. For information about possible format strings, see setCustomFormat.