Hi,
I am trying to generate SQL query on the fly using server-side javascript aka xsjs. Now I need to calculate Date and then convert it to a suitable format (such as the ISO format: YYYY-MM-DDThh:mm:ss). There does exist Date.parse() method, which works. However I have hard time to format a Date object into a string. Even the regular methods such as Date.getDate() seem not to work.
So my question is:
Does XS Engine support Date object?
Ideally I need function Date.format("YYYY-MM-DDThh:mm:ss")
Regards,
Wei-Guo