Hello
I would like to use HDB Library to get data from SAP HANA.
var conn = $.hdb.getConnection(); var rs = conn.executeQuery(query); // // // output.REPORT_HISTORY_ID = rs[i]["REPORT_BEGIN"];
I didn't get that Date as String but as UTC Date i think.
"REPORT_BEGIN": "2015-02-28T23:00:00.000Z",
I would like to get "REPORT_BEGIN":"01.03.2015"
When I use that $.db library with rs.getString() that works but I would like to use hdb.
Does anyone know how I get my output as String.
Thanks in advance
Houssem
The $.HDB API returns the data as JavaScript types that match their corresponding database type. You don't have to specify the type with get or set functions. If you want to convert the date to a string just use normal JavaScript data functions to do so. JavaScript Date toString() Method JavaScript Date Reference
Add a comment