handle date queries that might be structured a bit wrong