Dates conversion

Stimulsoft Reports.JS discussion
Post Reply
krzyl2
Posts: 7
Joined: Wed Apr 02, 2025 7:33 am

Dates conversion

Post by krzyl2 »

Hi!
I added JSON datasource to my report, below i pasted content of this json.
I added table with this data, and when Text format = General - dates are the same as in souce.
When Text format = Date - dates that i see in preview are different than dates in source.
Why there are dates difference? I would like to see dates as in source.

Additional interesting thing is that only one of this two dates are changed. Second one always is correct.
chrome_CSVTJUKiCw.gif
chrome_CSVTJUKiCw.gif (1.37 MiB) Viewed 859 times
{
"Temp": [
{
"TestValues": "2025-06-10T12:30:00.107"
},
{
"TestValues": "2025-06-09T12:30:00.40"
}
]
}

Chris
Max Shamanov
Posts: 990
Joined: Tue Sep 07, 2021 10:11 am

Re: Dates conversion

Post by Max Shamanov »

Hello,

Could you please clarify what version you are using?
Also, please send us a sample report with test data that reproduces the issue.

Thank you.
krzyl2
Posts: 7
Joined: Wed Apr 02, 2025 7:33 am

Re: Dates conversion

Post by krzyl2 »

I use version 2025.1.5
I have attached report and data source.
my data source is registered in report by code.
result is my json that i attached below.

const dataSet = new Stimulsoft.System.Data.DataSet("Temp");
dataSet.readJson(result);
this.designer.report.regData("My data", "", dataSet);


when i click on view Data i see this:
viewData.png
viewData.png (43.7 KiB) Viewed 702 times
data.png
data.png (4.11 KiB) Viewed 702 times
on preview i see this:
preview.png
preview.png (5.73 KiB) Viewed 702 times
Attachments
Report (9).mrt
(2.45 KiB) Downloaded 69 times
dates.json
(176 Bytes) Downloaded 66 times
Max Shamanov
Posts: 990
Joined: Tue Sep 07, 2021 10:11 am

Re: Dates conversion

Post by Max Shamanov »

Hello,

Thank you for your example.
We need some additional time to investigate the issue thoroughly.
We will let you know when we get any results.

Thank you.
Max Shamanov
Posts: 990
Joined: Tue Sep 07, 2021 10:11 am

Re: Dates conversion

Post by Max Shamanov »

Hello.

We have reproduced the issue and need some time to make an improvement.
We will let you know when we get any results.

Thank you.
#18019
Post Reply