T_stamp formatting

Hello, I'm currently designing a perspective program that shows you when historized Boolean tags change. I've gotten it to work up to the point where in my perspective table it shows me when but the t_stamp column is unreadable. I've tried a bunch of stuff, but nothings worked so far. Any help is greatly appreciated.

Ignition datetime objects, java.util.Date instances, do not have a javascript equivalent. Under the hood, they are UTC milliseconds from Jan 1, 1970. To not lose information, they are transmitted to the browser as 64-bit integers.

Components in Perspective that expect such objects (date pickers, in particular) expect this substitution and convert to/from user formats automatically.

The Perspective table, because it can display actual long integers too, needs an extra clue from you, the designer, for columns of this type. Simply change the props.columns[...].render setting for that column from "auto" to "date".

2 Likes

I just tried that in the props. It didn't work. I'm also running 8.1.16, which I know it's relatively out of date. Would screen shots of my code and perspective props help?

Never mind. I forgot to input the field value. This was great help thank you!

1 Like