Improve `Query.prototype.parseValue` to parse string to dates