Added control to clear dates