Added date to query

Added date