This method gets the Date control value as a JavaScript Date object.
Syntax
ctrl.getValue()
Arguments
No arguments.
Return value
The date control value as a JavaScript Date object. More info about JavaScript Date object.
Example
getValue() can be used in the JavaScript OnLoad event, as well as any other JavaScript event.
Display the the current value of the date control:
var ctrl = Runner.getControl(pageid, 'datefield');
var str_date = ctrl.getValue();
alert(str_date.ToString());
Note: replace "datefield" with the actual field name in the function.
See also:
•JavaScript API: Control object > getControl()
•JavaScript API: Date Control API > setValue()
•JavaScript API: Date Control API > getMomentValue()