fixed error that occurred due to inconsistent date format