Difference between revisions of "Fieldtype/Date"
Jump to navigation
Jump to search
old>Admin (Created page with '== 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 t…') |
old>Admin |
||
Line 22: | Line 22: | ||
** 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''' |
Revision as of 08:17, 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]
- 30 > [30 days from now]
- -7 > [7 days ago from now]
The loose option is activated by setting the configuration: doSmartDateInput