check for date