Hi Kevin,
If a date picker is connected to a dataset, setting its value in code will not submit that value to the data collection. Setting the value in code only changes its value in the GUI; to change it in the dataset, you also have to add this line of code:
$w("#myDataset").setFieldValue("myDateField", newValue);
I hope this helps.