Craig
Many thanks that worked, I thought it was that way, but when I first tried it what I did not notice was that when I opened the date picker the assigned date has a different colour box, thus I thought my intuitive thoughts were wrong.
After hours of additional hand coding - there are 30 date pickers on the page, it is all functioning.
Many thanks