Skip to main content
13-Aquamarine
June 20, 2023
Solved

how to print till 6th digit millisecond in thingworx in datetime output?

  • June 20, 2023
  • 2 replies
  • 1056 views

Hrishab108_0-1687243455263.png

Just like this;
2023-05-22  23:08:20:123421

 

 

Best answer by PaiChung

You may have to cast it to string, I don't remember a date/time format in any of the widgets that would do it.

2 replies

PaiChung22-Sapphire IAnswer
22-Sapphire I
June 20, 2023

You may have to cast it to string, I don't remember a date/time format in any of the widgets that would do it.

15-Moonstone
June 21, 2023

As @PaiChung said, you would have to parse this timestamp as a string and add the extra digits yourself.
However, if you do this from a date object, these additional digits will always be 0. Thingworx does not support a higher time resolution.