Add support for min and max queries on fields with date, time, and datetime types

Fix to support date, datetime, and time types for min/max queries.  See Issue #5.

Branched off of master.