check for dates