Fieldtype/Date

From TempusServa wiki
Revision as of 08:17, 21 February 2013 by old>Admin (→‎Configuration options)
Jump to navigation Jump to search

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