Improved date setting check