public class BatchDateFormatter extends org.kuali.rice.core.web.format.Formatter
| Constructor and Description |
|---|
BatchDateFormatter() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
convertToObject(String string)
Parses the given String to a date
|
String |
getDateFormat() |
String |
getDefaultDateFormat() |
void |
setDateFormat(String dateFormat)
Sets the date format to use for parsing
|
void |
setFormatToTimestamp(boolean formatToTimestamp)
Determines if the date should be parsed to a java.sql.Timestamp rather than the default java.sql.Date
|
convertFromPresentationFormat, convertToArray, convertToCollection, findFormatter, format, formatArray, formatBean, formatCollection, formatForPresentation, formatNull, formatObject, formatterForType, getFormatter, getFormatter, getImplementationClass, getNullObjectValue, getPropertyType, getSettings, isEmptyValue, isNullValue, isSupportedType, registerFormatter, setPropertyType, setSettings, unwrapStringpublic BatchDateFormatter()
public void setDateFormat(String dateFormat)
dateFormat - public String getDateFormat()
public String getDefaultDateFormat()
public void setFormatToTimestamp(boolean formatToTimestamp)
formatToTimestamp - true if result should be parsed as timestamp, false otherwiseprotected Object convertToObject(String string)
convertToObject in class org.kuali.rice.core.web.format.FormatterCopyright © 2004–2015 The Kuali Foundation. All rights reserved.