I don’t think the cast will work. It only takes two arguments: the value and the type.
I believe that the more extensive functions for (date) formatting are all vendor-specific (i.e. convert() or to_char()), so it would not be supported in the QB API.
You should be able to build the date format from scratch, but you’ll have to take each part of the date and also pad it with zeros for months and days that would be single-digit.
Something like:
var month = q.result.add(q.functions.concat('0',q.columns.orderdate.min.month.cast(QUERY_COLUMN_TYPES.TYPE_STRING)).substring(0,3))
That would be just one part, so would ```
concat(concat(month, ‘/’),concat(‘/’,year))…
But it really should be quite easy. Reply back if you have any troubles.