clear date from datepicker programmaticaly

clear date from datepicker programmaticaly


I have a checkbox that disables or enables the datepicker according to
whether it is checked. When it is unchecked, I would like it to first
clear the date from the datepicker input before it disables it. How
can I do this?
Thanks
Mike