public final class DateFormatUtil
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
static java.lang.String |
formatISO8601(java.util.Date date,
java.util.TimeZone timeZone) |
Formats the date according to ISO 8601 standard.
|
static java.lang.String |
formatPDFDate(java.util.Date date,
java.util.TimeZone timeZone) |
Formats the date according to PDF format.
|
static java.util.Date |
parseISO8601Date(java.lang.String date) |
Parses an ISO 8601 date and time value.
|
public static java.lang.String formatPDFDate(java.util.Date date, java.util.TimeZone timeZone)
date
- The date time to formattimeZone
- The time zone used to format the datepublic static java.lang.String formatISO8601(java.util.Date date, java.util.TimeZone timeZone)
date
- The date time to formattimeZone
- The time zone used to format the datepublic static java.util.Date parseISO8601Date(java.lang.String date)
date
- the date and time value as an ISO 8601 stringCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.