The DateDataFormat class has the following constructors:
DateDataFormat(int format)
DateDataFormat(String customFormat)
DateDataFormat(int format, String customFormat)
Creates a DateDataFormat object.
public DateDataFormat(int format);
format | The type of format. Specify one of the constants defined by the DateFormat class. |
Creates a DateDataFormat object.
public DateDataFormat(String customFormat);
customFormat | The custom format string to be used when the format type is set to DateFormat.CUSTOM. For information about possible format strings, see setCustomFormat. |
Creates a DateDataFormat object.
public DateDataFormat(int format, String customFormat);
format | The type of format. Specify one of the constants defined by the DateFormat class. |
customFormat | The custom format string to be used when the format type is set to DateFormat.CUSTOM. For information about possible format strings, see setCustomFormat. |
If no value is passed for format, the format type is set to DateFormat.SHORT.