QueryBuilder supports DateTime, Time and Date value

The commit makes the QueryBuilder a bit more useful by converting date / time to the required format.