got the date selection working ok. not a masterpiece of UX but it works