The formatted string is by default in UTC and English locale. You can provide a different {@link Locale} and{@link TimeZone} that are used for serialization or null
to use always the current TimeZone. Note, thatthe default format uses 3-letter time zones that can be ambiguous and may cause wrong results at deserialization and is localized since Java 6.
Dates in a different era are using a special default pattern that contains the era itself.
@author Joe Walnes @author Jörg SchaibleDesign Notes
Here are some forces concerning dates in Java web applications :
java.util.Date
. Conversion rules: null
value is returned as null
Calendar
object is convertedJDateTime
object is convertedNumber
is used as number of millisecondsThis implementation can be configured to handle conversion either by using a Locale's default format or by specifying a set of format patterns (note, there is no default String conversion for Date). See the {@link DateTimeConverter} documentation for further details.
Can be configured to either return a default value or throw a ConversionException
if a conversion error occurs.
@version $Revision: 640131 $
@since 1.8.0
A converter which parses and prints Date objects using a specific format.
Created: Apr 22, 2004
Copyright: Copyright (c) 2004
Assumptions: none
Requires: nothing
Required by: nothing
Revision History:
This implementation can be configured to handle conversion either by using a Locale's default format or by specifying a set of format patterns (note, there is no default String conversion for Date). See the {@link DateTimeConverter} documentation for further details.
Can be configured to either return a default value or throw a ConversionException
if a conversion error occurs.
@version $Revision: 640131 $
@since 1.8.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|