add support for date in query