com.atlassian.jira.datetime
Class DateTimeFormatUtils

java.lang.Object
  extended by 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 Summary
DateTimeFormatUtils()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateTimeFormatUtils

public DateTimeFormatUtils()
Method Detail

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:
getDateTimeFormat()


Copyright © 2002-2012 Atlassian. All Rights Reserved.