System.SysUtils.DateTimeToString procedure seems missing

System.SysUtils.DateTimeToString(LStrtDT, 'mm/dd hh:nn', RecordStart);

The above line of source code appears OK in the IDE, but fails to compile with the following error message:

Pas2JS Compiler version 3.1.1 [2024/11/23] for Win32 i386 / TMS WEB Core version v2.9.0.0
[Error] CWRmainForm.pas(1354): identifier not found "DateTimeToString"

Will this be added to a future version?

We will investigate and consider to add it.

Thanks, Bruno. The Embarcadero docs led me down that rabbit hole when I looked for method to generate a nonstandard TDateTime string representation. But I can just as readily use the function FormatDateTime('mm/dd hh:nn', RecordStart), which WebCore supports. Now that I have (re)discovered that, I won't need the equivalent procedure call and its lack is a low priority for me.

We actually added DateTimeToString() for Delphi compatibility and this will be available in the next update.

Thanks!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.