Class DateTimeFormatUtils

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

public class DateTimeFormatUtils extends Object
Helper methods for dealing with the configured date and date-time formats.
Since:
v5.0 - originally extracted from CustomFieldUtils
  • Constructor Details

    • DateTimeFormatUtils

      public DateTimeFormatUtils()
  • Method Details

    • getDateFormat

      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.
    • getDateTimeFormat

      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.
    • getTimeFormat

      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.
      See Also: