Page 1 of 1

The external method 'System.String ToString(System.String)' of type 'System.DateTime' has not been implemented.

Posted: Fri Jul 14, 2017 8:28 am
by TaterJuice
The error does not occur in the simulator, only in the JS output.
The culprit of the error is:

Code: Select all

string curDate = DateTime.Now.ToString("MM/dd/yyyy")

Re: The external method 'System.String ToString(System.String)' of type 'System.DateTime' has not been implemented.

Posted: Sat Aug 19, 2017 6:35 am
by JS-Support @Userware
Hi,

Thanks for your message. The overload that takes a string formatting ("MM/dd/yyyy") is not yet available. It is on the roadmap for early 2018. For the moment, you can only use the following methods:
- DateTime.ToLongTimeString()
- DateTime.ToShortDateString()
- DateTime.ToShortTimeString()
- DateTime.ToString()

Regards,
JS-Support

Re: The external method 'System.String ToString(System.String)' of type 'System.DateTime' has not been implemented.

Posted: Mon Aug 21, 2017 9:48 am
by TaterJuice
Thank you!