Added new datepicker from jquery ui and got it working. Also created a validation for the dates to check that the start was before the end.