I am using the UI DatePicker from jQuery UI as the stand alone picker. I have this code:
And the
Below code might help to check if form got more than 1 date field:
jQuery UI Datepicker - Display month & year menus From Date: To Date:
From Date:
To Date: