DateTimePicker.DateTimeChange

Syntax

DateTimeChange: function(sender, args)

Parameters

sender. Event source.

args. Event information.

Description

The DateTimeChange event occurs on changing the date.

Example

To execute the example, create the DateTimePicker component (see Example of Creating the DateTimePicker Component) named DTP. Add the DateTimeChange event handler:

DTP.DateTimeChange.add(function (sender, args)

{

        alert(New date: + DTP.getCurrentDate());

})

After executing the example on changing the date the information message concerning the set date is displayed with the help of the calendar or the keyboard.

See also:

DateTimePicker