Create an XML calendar field, use a languagestring as format in the format field.
Example:
format="DATE_FORMAT_LC3"
Date shown in the given format.
Example:
Tuesday, 05 December 2017
The given languagestring.
Example:
DATE_FORMAT_LC3
The 'translateformat' field doesn't really do anything useful, the documentation says it changes the shown date format using "a" language string, but that languagestring is already the default format. It would be useful if a language string could be given to it.
| Labels |
Added:
?
|
||
| Category | ⇒ | JavaScript |
The translateformat attribute does automatically use a localised dateformat. You can only customise if it should show also the time or not.
The format attribute is ignored if translateformat is enabled. Also the format attribute can't be translated. It wouldn't make sense anyway since you need a different format when reading and when storing the date.
Closing as expected behavior
| Status | New | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-12-05 14:40:52 |
| Closed_By | ⇒ | Bakual |
@Bakual please explain this user the difference between a calendar field and a date field. :)