DEFAULT| Constructor and Description |
|---|
DateTimePropertyEditor()
Creates a new date time property editor.
|
DateTimePropertyEditor(DateTimeFormat format)
Creates a new date time property editor.
|
DateTimePropertyEditor(String pattern)
Creates a new date time property editor.
|
| Modifier and Type | Method and Description |
|---|---|
DateTimeFormat |
getFormat()
Returns the date time format.
|
boolean |
isParseStrict()
Returns true if parsing strictly.
|
Date |
parse(CharSequence text) |
String |
render(Date value) |
void |
setParseStrict(boolean parseStrict)
True to parse dates strictly (defaults to true).
|
renderpublic DateTimePropertyEditor()
public DateTimePropertyEditor(DateTimeFormat format)
format - the date time formatpublic DateTimePropertyEditor(String pattern)
pattern - the pattern used to create a new @link
DateTimeFormat.public DateTimeFormat getFormat()
public boolean isParseStrict()
public Date parse(CharSequence text) throws ParseException
ParseExceptionpublic void setParseStrict(boolean parseStrict)
DateTimeFormat.parseStrict(String).parseStrict - true to parse strictlyCopyright © 2012. All Rights Reserved.