With the Date and Time format, it is transmitted as a string, Cmd is not suitable here
Input Script – Val()
Output Script – GetStrDt(CmdDataStr)
or GetStrDtToUtc(CmdDataStr)
Script Table
For Locale Time
public double GetStrDt(string dt)
{
SetVal(CnlNum, EncodeDate(DateTime.Parse(dt)));
return EncodeDate(DateTime.Parse(dt));
}
For UTC Time
public double GetStrDtToUtc(string dt)
{
SetVal(CnlNum, EncodeDate(DateTime.Parse(dt).ToUniversalTime()));
return EncodeDate(DateTime.Parse(dt).ToUniversalTime());
}
-
This reply was modified 3 weeks, 6 days ago by manjey73.
-
This reply was modified 3 weeks, 6 days ago by manjey73.