I found this:
Issue setting date picker value
Someone else had this same problem and worked around it by adding a one second delay in the onReady function before setting the Date Picker value.
The obvious conclusion is that the Date Picker element is not fully loaded by the time the onReady function runs. Sounds like a bug to me, but at least I have a workaround.