Skip to main content
November 24, 2022
Question

Timestamp value millisecond part automatic conversion

  • November 24, 2022
  • 3 replies
  • 0 views

Hi,

I am trying to pass the timestamp value which is of type text in CDT from upstream through webapi. The milliseconds part is getting rounded off automatically

Value from Upstream: 2022-11-21T09:00:56.998992Z

Roundoff Value: 2022-11-21T09:00:57Z

Expected format : %Y-%m-%dT%H:%M:%S.%fZ"

But I need to send the same value from my upstream to my downstream system

Any solution for the above please?

    3 replies

    stefanhelzle0001
    Brainy
    November 24, 2022

    Why not treat it as text?

    November 25, 2022

    Hi Stefan, 

    Timestamp value is of type text in my CDT. Thanks

    November 25, 2022

    It is converting text value too in pv value