minimal utility to check if provided string is a date.