public interface TransformationDateFormats
DateFormat
s used to format and parse dates when transforming between Confluence formats (such as editor and storage formats).Modifier and Type | Method and Description |
---|---|
String |
format(Date date)
Delegates to
DateFormat.format(Date) |
DateFormat |
getPostingDayFormat()
Deprecated.
use the
parse(String) or format(Date)
methods, as this exposes a DateFormat object which can be potentially mutated and persisted across requests |
Date |
parse(String source)
Delegates to
DateFormat.parse(String) |
@Deprecated DateFormat getPostingDayFormat()
parse(String)
or format(Date)
methods, as this exposes a DateFormat
object which can be potentially mutated and persisted across requestsDate parse(String source) throws ParseException
DateFormat.parse(String)
source
- a String whose beginning should be parsedParseException
String format(Date date)
DateFormat.format(Date)
date
- the date-time value to be formatted into a date-time stringCopyright © 2003–2017 Atlassian. All rights reserved.