Fixed handling of >= and <= for dates