The following is a partial example of a date-time picker widget handler function. This handler simply logs a string representing the date-time chosen by the user in a date-time picker widget with the ID "myDateTimePickerWidgetID":
function handleDateTimeChange(event) {
var dateTimeInput =
event.commonEventObject.formInputs["myDateTimePickerWidgetID"];
var msSinceEpoch = dateTimeInput.msSinceEpoch;
var hasDate = dateTimeInput.hasDate;
var hasTime = dateTimeInput.hadTime;
...
I cannot find anywhere in the reference where to set or get this ID
I have tried using the example "myDateTimePickerWidgetID".