public class DateTimeFormat extends Object
Format
annotation. If the user does not specify any format, then the default formats are used.
| Constructor and Description |
|---|
DateTimeFormat() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getDateFormat()
Get the date formats to use as specified by the user or the default formats
|
String[] |
getDateTimeFormat()
Get the date/time formats to use as specified by the user or the default formats
|
String[] |
getTimeFormat()
Get the time formats to use as specified by the user or the default formats
|
void |
setDateFormat(String[] dateFormat)
Set the date formats to use as specified by the user or the default formats
|
void |
setDateTimeFormat(String[] dateTimeFormat)
Set the date/time formats to use as specified by the user or the default formats
|
void |
setTimeFormat(String[] timeFormat)
Set the time formats to use as specified by the user or the default formats
|
String |
toString()
Override toString
|
public String[] getDateFormat()
public void setDateFormat(String[] dateFormat)
dateFormat - the dateFormat to setpublic String[] getTimeFormat()
public void setTimeFormat(String[] timeFormat)
timeFormat - the timeFormat to setpublic String[] getDateTimeFormat()
public void setDateTimeFormat(String[] dateTimeFormat)
dateTimeFormat - the dateTimeFormat to setCopyright © 2014. All rights reserved.