DateTimeToString
When I am using the function DateTimeToString with the parameter "01/01/1753" on my local machine I get the value "0-00-01 00:00:00".
On a development PC in the USA the resultiong value is "1753-01-01 00:00:00" (as expected).
On my local machine the parameter (Date("01/01/1753")) works as expected.
Code:
Object oDRReportHelper is a cDRReportHelper
End_Object
Object oButtonDateTime is a Button
Set Location to 34 197
Set Label to "DateTime"
Procedure OnClick
String sDateTimeResult1 sDateTimeResult2
Get DateTimeToString of oDRReportHelper "01/01/1753" to sDateTimeResult1
Get DateTimeToString of oDRReportHelper (Date("01/01/1753")) to sDateTimeResult2
Showln sDateTimeResult1
Showln sDateTimeResult2
Showln
End_Procedure
End_Object
Result:
0-00-01 00:00:00
1753-01-01 00:00:00
Best regards,
Peter van Mil
Appvantage b.v.