Fixed handling of ```>=``` and ```<=``` for dates

I am not sure that this works for all cases. But it fixes the issue I reported (#18) for the ```gte``` and ```lte`` for dates.

Note: in particular I am worried about what would happen for a ```between``` call. Also do we need to add some unti testing for this type of call?