Time range problems: Invalid date and object
Posted: Mon May 15, 2017 1:52 am
Dear all
I use demo stimulsoft report js and have some problems when setting time range variable.
When I create a variable of time range, I set type as "datetime" and "range" and set Init by as "value", then I choose From and To between "2017-1-1 09:16:26" and "2017-5-15 09:16:26". Others, "request from user" is chosen and date time format is "date and time".
However, when I preview the report, it shows "NaN.NaN.NaN Invalid Date" in both from and to in the time range. Then, I go back to the Edit Variable, It becomes Invalid date in the From and To.
Furthermore, I put the variable on the report to show the time range, which users choose. But it shows [object Object] in preview.
By the way, when setting Init by as value "without" choosing From and To, the time range can run, but shows 01/01/1900 to 05/15/2017, and the variable still shows [object Object] in preview.
I use demo stimulsoft report js and have some problems when setting time range variable.
When I create a variable of time range, I set type as "datetime" and "range" and set Init by as "value", then I choose From and To between "2017-1-1 09:16:26" and "2017-5-15 09:16:26". Others, "request from user" is chosen and date time format is "date and time".
However, when I preview the report, it shows "NaN.NaN.NaN Invalid Date" in both from and to in the time range. Then, I go back to the Edit Variable, It becomes Invalid date in the From and To.
Furthermore, I put the variable on the report to show the time range, which users choose. But it shows [object Object] in preview.
By the way, when setting Init by as value "without" choosing From and To, the time range can run, but shows 01/01/1900 to 05/15/2017, and the variable still shows [object Object] in preview.