@ThreadSafe public interface DateFieldFormat
The Date instances that this class produces are always to be interpreted in the system time zone.
DateTimeStyle.DATE,
DateTimeStyle.DATE_PICKER| Modifier and Type | Method and Description |
|---|---|
String |
format(Date date)
Formats a date using the JIRA date format.
|
String |
formatDatePicker(Date date)
Formats the given date for usage in a date picker.
|
String |
getFormatHint()
Returns a string containing the format that this class is capable of parsing.
|
boolean |
isParseable(String text)
Returns a boolean indicating whether the given text contains a valid date.
|
Date |
parseDatePicker(String text)
Returns a date that is obtained by parsing the given text.
|
String format(Date date)
date - a DateString formatDatePicker(Date date)
date - a DateDate parseDatePicker(String text) throws IllegalArgumentException
text - a String representation of a dateIllegalArgumentException - if the text cannot be parsedboolean isParseable(String text)
text - a String representation of a dateString getFormatHint()
Copyright © 2002-2016 Atlassian. All Rights Reserved.