How to get time difference from two datetime widget in a textbox widget
Hi,
As I am new to Thingworx I don't know how to get time difference from two datetime widget in a textbox widget. Do I need to create service for this?
Thanks in advance
Hi,
As I am new to Thingworx I don't know how to get time difference from two datetime widget in a textbox widget. Do I need to create service for this?
Thanks in advance
If you want it in milliseconds ( of course then you can convert it), you can do it with an Expression widget with two DateTime parameters and on the expression you set:
(date1.getTime()-date2.getTime())
That's all you don't need a service neither a custom property for that.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.