Documentation to Convert class and others

Stimulsoft Reports.JS discussion
Post Reply
galexandre
Posts: 7
Joined: Wed Oct 10, 2018 12:32 pm

Documentation to Convert class and others

Post by galexandre »

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 find information about the Convert class and others I can use?

Convert.ToDateTime does not exist in the documentation (User Manual, Programming Manual and Help Menu in designer). However, in the class documentation, Convert.toDateTime (in lower case), which does not work in Report.JS Designer. In addition, I tested other classes of documentation that did not work. Where can these classes be used?

Text expressions I tried to use:

- DateTime (https://admin.stimulsoft.com/documentat ... isleapyear):

{DateTime.isLeapYear (2018)}

- Char (https://admin.stimulsoft.com/documentat ... ml#isdigit):

{Char.isDigit ("d")} // generate error


- Environment (https://admin.stimulsoft.com/documentat ... ml#newline):

{Environment.newLine ()} // generate error
Lech Kulikowski
Posts: 6259
Joined: Tue Mar 20, 2018 5:34 am

Re: Documentation to Convert class and others

Post by Lech Kulikowski »

Hello,

In the JS version, you can use the DateTime.Parse() method.

Thank you.
galexandre
Posts: 7
Joined: Wed Oct 10, 2018 12:32 pm

Re: Documentation to Convert class and others

Post by galexandre »

Ok, but where I find reference to this and others?
Lech Kulikowski
Posts: 6259
Joined: Tue Mar 20, 2018 5:34 am

Re: Documentation to Convert class and others

Post by Lech Kulikowski »

Hello,

At the current moment, not the last version of class references is present on the site.

We will try to update it in near future.

Thank you.
Post Reply