setValue

sets a date in a DatePicker control

void setValue(string|Date value);

Parameters

valuestring|Datethe value to be set

Example

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

Back to top