diff --git a/core/src/main/java/org/apache/struts2/components/DateTimePicker.java b/core/src/main/java/org/apache/struts2/components/DateTimePicker.java index e2fbe3484..aa3e3e9a3 100644 --- a/core/src/main/java/org/apache/struts2/components/DateTimePicker.java +++ b/core/src/main/java/org/apache/struts2/components/DateTimePicker.java @@ -45,46 +45,50 @@ import com.opensymphony.xwork2.util.ValueStack; *

* Dates attributes passed in the `RFC 3339` format: * - * Renders date/time picker element.

- * Format supported by this component are:- + *

+ * It is possible to customize the user-visible formatting with either the + * 'formatLength' (long, short, medium or full) or 'displayFormat' attributes. By defaulty current + * locale will be used.

+ *

+ * + * Syntax supported by 'displayFormat' aree (http://www.unicode.org/reports/tr35/tr35-4.html#Date_Format_Patterns):- * * * * * * - * - * + * + * * * - * - * + * + * * * - * - * + * + * * * - * - * + * + * * * - * - * + * + * * * - * - * + * + * * * - * - * + * + * * *
FormatDescription
#ddDisplay day in two digits formatdDay of the month
#dTry to display day in one digit format, if cannot use 2 digit formatDDay of year
#MMDisplay month in two digits formatMMonth - Use one or two for the numerical month, three for the abbreviation, or four for the full name, or 5 for the narrow name.
#MTry to display month in one digits format, if cannot use 2 digit formathHour [1-12].
#yyyyDisplay year in four digits formatHHour [0-23].
#yyDisplay the last two digits of the yaermMinute. Use one or two for zero padding.
#yDisplay the last digits of the yearsSecond. Use one or two for zero padding.
* *

- * It is possible to customize the user-visible formatting with either the - * formatLength or displayFormat attributes. The value sent to the server is + * The value sent to the server is * typically a locale-independent value in a hidden field as defined by the name * attribute. RFC3339 representation is used by default, but other options are * available with saveFormat