I pass an array as a JSON string with some fields, and one of these is an only date field (with no time) Ex: "01/01/2020".
I have the problem when the report returns me that example as "01/01/2020 00:00:00".
I have this code:
Code: Select all
var jsonData = JSON.parse(jsonString.value);
var dataSet = new Stimulsoft.System.Data.DataSet();
dataSet.readJson(jsonData);
var report = new Stimulsoft.Report.StiReport();
report.regData("data", "data", dataSet);
var dataSource = new Stimulsoft.Report.Dictionary.StiDataTableSource(data.tableName, data.tableName, data.tableName);
dataSource.columns.add(new Stimulsoft.Report.Dictionary.StiDataColumn("date1", "date1", "date1"));