Search found 7 matches

by galexandre
Tue Oct 16, 2018 9:58 am
Forum: Stimulsoft Reports.JS
Topic: Documentation to Convert class and others
Replies: 3
Views: 1197

Re: Documentation to Convert class and others

Ok, but where I find reference to this and others?
by galexandre
Sun Oct 14, 2018 3:11 pm
Forum: Stimulsoft Reports.JS
Topic: Parse/Convert JSON Date format
Replies: 11
Views: 4568

Re: Parse/Convert JSON Date format

Another alternative to Convert.ToDateTime is DateTime.Parse() method.
by galexandre
Fri Oct 12, 2018 7:08 pm
Forum: Stimulsoft Reports.JS
Topic: Parse/Convert JSON Date format
Replies: 11
Views: 4568

Re: Parse/Convert JSON Date format

I occasionally found that it is possible to use {Convert.ToDateTime (dataSource.dataField)} in an expression to convert a string type to DateTime. So for those who use Report.JS, it is possible to convert a JSON date field using this expression.: {Convert.ToDateTime(root.datePedido)} And using built...
by galexandre
Fri Oct 12, 2018 7:06 pm
Forum: Stimulsoft Reports.JS
Topic: Documentation to Convert class and others
Replies: 3
Views: 1197

Documentation to Convert class and others

By chance, I discovered in a post that it is possible to convert a date field in the JSON format, for example, {"dateField": "2017-10-12T09: 00: 01"}, in the Date data type of Reports.JS using the funciton Convert.ToDateTime (source.dateField), but this was by chance. Where do I ...
by galexandre
Fri Oct 12, 2018 2:50 pm
Forum: Stimulsoft Reports.JS
Topic: Parse/Convert JSON Date format
Replies: 11
Views: 4568

Re: Parse/Convert JSON Date format

I noticed that the date type issue only happens in Designer Preview. In Stimulsoft Viewer the problem does not happen. I still do not know what happens when the report runs in an application. Anyway, the DateToStr function wont works. Follow files to validation.
by galexandre
Thu Oct 11, 2018 12:32 pm
Forum: Stimulsoft Reports.JS
Topic: Parse/Convert JSON Date format
Replies: 11
Views: 4568

Re: Parse/Convert JSON Date format

I'm still working on the designer with json payload. So ... does this mean that you will not be able to create reports using json with data type date? Json dates are texts and do not become DateTime without programming ... I saw the event session and could not handle, they were not fired, at least i...
by galexandre
Wed Oct 10, 2018 12:56 pm
Forum: Stimulsoft Reports.JS
Topic: Parse/Convert JSON Date format
Replies: 11
Views: 4568

Parse/Convert JSON Date format

Has anyway to convert Json date format (e. g. 2017-10-05T02:49:26.283) to Date/DateTime format? I load my report from JSON, but my date field is invalid to DateToStr Function.

JSON sample:

{
"id": "105",
"register": "2017-10-05T02:49:26.283",
}