Display tag value in MM/dd/yyyy format
Hi
I have a tag with Date/Time information, I am logging it as I8 type. I am getting this information from Logix5000 using GSV instruction wallclock -> currentvalue. (Long INT)
Is it possible to display tag value (Not time stamp) in MM/dd/yyyy format?
-
Steve Mason
Here 1649635200000000 = 04/11/2022 April 11,2022
and 1649721600000000 = 04/12/2022
I am OK with both formats
MM/dd/yyyy 04/11/2022
and dd-MMM-yyyy 11-Apr-2022
I know how to extract # of days from epochmicroseconds, but I don't know to represent date in above format.
Because I am not concerned with time so daylight saving details do not matter.
In attachment I added Logix5000 Add on Instruction that converts epochmicroseconds to equivalent date. If you cannot open logic I will send screen shots.