update datepicker sample