Fix a bug with handling Date types for DatastoreInput Query filter

R=tkaitchuck
DELTA=46 (40 added, 0 deleted, 6 changed)

Revision created by MOE tool push_codebase.
MOE_MIGRATION=7161