Question
Yuri Marx · Jun 6

How I can get current date/time on format YYYYMMDDhhmmss

How I can get current date/time on format YYYYMMDDhhmmss?

I tried $ZDATETIME($HOROLOG,8), but I got 20220606 17:59:56 and I want 20220606175956

 

Thanks

Product version: IRIS 2022.1
0
0 146
Discussion (2)1
Log in or sign up to continue

Would this be acceptable?

W $TRANSLATE($ZDATETIME($HOROLOG,8)," :")

Hope this helps!

w $ZSTRIP($ZDT($H,8),"*P") should give the result you want