How to convert unix timestamp

I use Date Time Input to select start/end date which linked to PLC tags.
My problem was that ignition display date as Unix milliseconds but my PLC display it as UNIX seconds.

So, how can I convert Unix milliseconds to Unix seconds before using in my program ?

You can try scaling your tag.

I would use a derived tag that multiplied/divided by 1000. (Plus conversion to/from java.util.Date.)

1 Like

Thank you JordanCClark for your reply!
I already tried it but not working. It works only one time but when I select new date my value return in milliseconds.