Difference between revisions of "Fieldtype/Date"

From TempusServa wiki
Jump to navigation Jump to search
old>Admin
m (3 revisions imported)
 
(No difference)

Latest revision as of 11:52, 10 December 2021

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