public class

DateTimeFormatUtils

extends Object
java.lang.Object
   ↳ com.atlassian.jira.datetime.DateTimeFormatUtils

Class Overview

Helper methods for dealing with the configured date and date-time formats.

Summary

Public Constructors
DateTimeFormatUtils()
Public Methods
static String getDateFormat()
Returns the configured Javascript date picker format.
static String getDateTimeFormat()
Returns the configured Javascript date-time picker format.
static String getTimeFormat()
Returns "12" or "24" from the Javascript date-time picker format.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public DateTimeFormatUtils ()

Public Methods

public static String getDateFormat ()

Returns the configured Javascript date picker format.

ie the format stored in the "jira.date.picker.javascript.format" application property.

Returns
  • the configured Javascript date picker format.

public static String getDateTimeFormat ()

Returns the configured Javascript date-time picker format.

ie the format stored in the "jira.date.time.picker.javascript.format" application property.

Returns
  • the configured Javascript date-time picker format.

public static String getTimeFormat ()

Returns "12" or "24" from the Javascript date-time picker format.

Returns
  • "12" or "24" from the Javascript date-time picker format.