Hi Everyone,
I created a Tag, and it get time from gateway. In the numeric section of tag editor, I put the format string as h:mm:ss a and I am getting the correct time as tag value (picture attached).
when I use this tag in Transaction Group it shows full daytime (picture attached).
why i am not getting the correct value from tag.
Because datetimes are objects, and your tag contains the object. Formatting only applies to the tag browser view, unless you deliberately pull that format string into your UI.
Your transaction group is receiving the full object, and in most cases, should receive the full object. (You generally should only use DB columns that are full TZ-aware date/time combinations, like MS SQL's datetime2
or PostgreSQL's timestamptz
.)