Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Does HANA XSJS support Date functions such as getDate()?

$
0
0

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


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>