Error! Invalid date format. Please enter the date in the format"D/MMM/YY".

May 30, 2016

Problem

Wrong date format when trying to add new test cycle.

Cause

The date or date/time formats for date pickers are defined by a pair of properties (one for Java and the other for JavaScript). The two properties in this Java/JavaScript pair must match in order for the date (or date/time) picker they define to function correctly.

Fix

Changing the Due Date Input Format

The Look and Feel page allows you to customize the way times and dates are presented to users throughout the JIRA user interface.

When specifying dates and times, they should be based on the Java SimpleDateFormat.

When you are not in edit mode on the 'Look and Feel' page, the examples in the rightmost column of the Date/Time Formats section show you how the various formats will appear in JIRA.

Relative time is used in date/time formats

Issue date/time fields show a relative instead of absolute date/time format (for example: "Yesterday" instead of "20 May 2013 12:00 PM"). You can still see the absolute date/time by hovering over the field.

(info) The date/time format reverts to absolute after a week.

If you want to switch off this format, set the jira.lf.date.relativize application property to 'false'. See Advanced JIRA Configuration and Disable relative dates in JIRA applications for more information.

Configuring date picker formats

JIRA system administrators can configure the format of date pickers used throughout the JIRA user interface via options on the Advanced Settings page.

(info) Be aware that these options are different from the Date/Time Formats configuration options on the Look and Feelpage, which only customize JIRA's presentation of times and dates to users.

(warning) The date or date/time formats for date pickers are defined by a pair of properties (one for Java and the other for JavaScript). The two properties in this Java/JavaScript pair must match in order for the date (or date/time) picker they define to function correctly.

  1. For Java formats, specify date/time formats based on the Java SimpleDateFormat.
  2. For JavaScript formats, specify date/time formats based on the Unix date format.

Here are some example US-based date configurations:

Preferred Date

Value of thejira.date.picker.java.formatproperty

Value of thejira.date.picker.javascript.formatproperty

Comments
2010-10-01 yyyy-MM-dd %Y-%m-%d ISO 8601 format

Oct/1/10

MMM/d/yy

%b/%e/%y

10/01/10

MM/dd/yy

%m/%d/%y

Oct 1, 2010

MMM d, yyyy

%b %e, %Y

10/01/2010

MM/dd/yyyy

%m/%d/%Y

Here are some examples of date/time configurations:

Preferred Date/Time

Value of thejira.date.time.picker.java.formatproperty

Value of thejira.date.time.picker.javascript.formatproperty

Comments
2010-10-15 08:50 yyyy-MM-dd HH:mm %Y-%m-%d %H:%M ISO 8601 format

15/Oct/10 8:50 AM

dd/MMM/yy h:mm a

%d/%b/%y %l:%M %p

10/15/10 08:50 AM

MM/dd/yy hh:mm a

%m/%d/%y %I:%M %p

Products: