Thanks for the reply.
Looking at the code, I see that the date is being assigned to the calendar, but I need to assign it to the datePicker (the whole object is to avoid the user having to popup the calendar)
current code below.
I have tried the following, but obviously, it didn't work.
How can I get it to set the date to the datePicker?