XForms Manual
  • XForms
  • Form Template
  • Form Controls
    • General
    • Date Control (dat)
    • Expression (exp)
    • Images Control (img)
    • Lookup (lkp)
    • Multi-Choice (mch)
    • Number (num)
    • Signature Control (sig)
    • Table Control (tbl)
    • Text Control (txt)
    • Time Control (tim)
  • PDF Template
  • Reference Lists
  • Webhooks
Powered by GitBook
On this page
  1. Form Controls

Date Control (dat)

Settings

Setting

Value

Comment

type

"dat"

readonly

true/false (optional)

true: date value cannot be modified, default false

format

ISO | US | CAN | MN

or custom format

US = 05/25/2021

CAN = 25/05/2021 ISO = 2021-05-25 MN (month name) = 25-May-2021 Default: US

For custom format:

dd = day number

MM = month number

MMM = 3-letter month name

yy = 2-digit year

yyyy = 4-digit year

example: "MM-dd-yy"

noDefault

true/false

if true: no default date shown

if false: current date shown by default

minDate

string: "YYYY-MM-DD"

minimum accessible date (default Jan. 1st, 5 years before current year)

maxDate

string: "YYYY-MM-DD"

maximum accessible (default Dec. 30th, 10 years after current year)

showTimeZone

true/false (optional) default: false

if true, a time zone name will be displayed next to date. example: 5/1/2022 (EDT)

PreviousGeneralNextExpression (exp)

Last updated 1 year ago