fix(REST/query/date): query with a date variable

If a variable query paremeter contains a String value which has the format
"yyyy-MM-dd'T'HH:mm:ss" then the value will be parsed to a date. The
parsed date will be used for the query.

related to CAM-2123