handle dates properly

- if the query field is a date then pass dates (not timestamps) in the
  query string - to avoid any weird issues with timezone comparisons