check for matching dates