| com.atlassian.jira.util.DateFieldFormat |
Known Indirect Subclasses
| |||||||||||||
Helper for handling JIRA date fields. Dates in JIRA are displayed as day/month/year and are intepreted according to the date picker format. Even though we use java.util.Date instances internally, only the year/month/day are relevant in a date field. Dates are used in a few places throughout JIRA:
The Date instances that this class produces are always to be interpreted in the system time zone.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Formats a date using the JIRA date format.
| |||||||||||
Formats the given date for usage in a date picker.
| |||||||||||
Returns a string containing the format that this class is capable of parsing.
| |||||||||||
Returns a boolean indicating whether the given text contains a valid date.
| |||||||||||
Returns a date that is obtained by parsing the given text.
| |||||||||||
Formats a date using the JIRA date format.
| date | a Date |
|---|
Formats the given date for usage in a date picker.
| date | a Date |
|---|
Returns a string containing the format that this class is capable of parsing.
Returns a boolean indicating whether the given text contains a valid date.
| text | a String representation of a date |
|---|
Returns a date that is obtained by parsing the given text. The string representation of the date is assumed to be in the system time zone.
| text | a String representation of a date |
|---|
| IllegalArgumentException | if the text cannot be parsed |
|---|

