Hi
I did simple test to check on the datetime functions.
string strcurdate = currentdatetime("YYYY-MM-dd HH:mm:ss");
long longcurdate = datetimeto("YYYY-MM-dd HH:mm:ss", strcurdate);
string strdate = datetimefrom("YYYY-MM-dd HH:mm:ss", longcurdate);
Tags.strDate =strdate;
Somehow, the strcurdate and strdate has about 6 months differences. It should be the same.
FYI, use TeslaSCADA2 ver 2.42 IDE
Let me know if anything wrong on site
Thanks