Sets or gets the date and time value of the appointment field.
Setting the value
property sets the date and time displayed in the appointment field.
Getting the value
property gets the appointment field's date and time according to the browser's locale and timezone.
Set and get the timezone using the visitorTimeZone
property.
Notes:
Changing an appointment field's value
in code doesn't trigger an onChange
event.
If an appointment field is connected to a dataset, setting the appointment field's value
in code doesn't set the value of the connected field in the dataset.
That means if you use the dataset to perform a submit, the value changed
in code isn't reflected in the submitted item.
To submit the new value using a dataset, set the field's value using the
setFieldValue()
function before
performing the submit.