Skip to main content

setValue()

sets a date in a DatePicker control

setValue(value: string | Date): void;

Parameters:

value: string | Date - the value to be set

Example

form.getItem("datepicker").setValue("30/05/19");
form.getItem("datepicker").setValue(new Date('2019-05-30'));