Fix for #1311

Logic of date filters had been mixed-up
Comments to help explain filter logic
Comments on separate line to improve line length
Merge pull request #1314 from aodn/Issue_#1311

Fix for #1311