Difference between revisions of "Fieldtype/Date"
Jump to navigation
Jump to search
old>Admin |
old>Admin |
||
Line 20: | Line 20: | ||
* Loose: Interpretation of all values | * Loose: Interpretation of all values | ||
** 31/12 > 31/12/[this year] | ** 31/12 > 31/12/[this year] | ||
** 311213 > 31/12/2013 | |||
** 30 > [30 days from now] | ** 30 > [30 days from now] | ||
** -7 > [7 days ago from now] | ** -7 > [7 days ago from now] | ||
The loose option is activated by setting the configuration: '''doSmartDateInput''' | The loose option is activated by setting the configuration: '''doSmartDateInput''' |
Revision as of 08:18, 21 February 2013
Show mode
The date will be formatted as defined in format option.
Default formatting is: dd/mm/yyyy
Edit mode
The date field will display a textbox. On activating the field a date selector will popup below the field.
Normal input format is: dd/mm/yyyy
The values for dd and mm can be either 1 or two digits - examples
- 1/12/2013 or 01/12/2013
- 31/1/2013 or 31/01/2013
The seperator method is also free: "/" or "-" will do
Configuration options
The date field can be set to strict or loose date parsing:
- Strict: Only the correct date format supplied by the date selector dd/mm//yyy
- Loose: Interpretation of all values
- 31/12 > 31/12/[this year]
- 311213 > 31/12/2013
- 30 > [30 days from now]
- -7 > [7 days ago from now]
The loose option is activated by setting the configuration: doSmartDateInput