Extracted the code to clear the dates to clearDates so it can be called from outside of the clear button.
Bump version