I found some links with less optimal implementations. Using the Selenium Select class is not too complicated. Here is my useful utility with
public static void selectDateFromJqueryDatepicker(WebElement datePickerDiv, int expYear, int expMonth, int expDay) {
You just need to pass the year / month / day in integer format and an external datepicker div. In my case, I found it as follows
WebElement datePickerDiv= findElement(By.id("ui-datepicker-div"));
cpomp source share