Question Yuri Marx · Jun 6, 2022 How I can get current date/time on format YYYYMMDDhhmmss #ObjectScript #InterSystems IRIS 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 209
Roger Merchberger · Jun 6, 2022 Would this be acceptable? W $TRANSLATE($ZDATETIME($HOROLOG,8)," :") Hope this helps! Ian Pears · Jun 7, 2022 w $ZSTRIP($ZDT($H,8),"*P") should give the result you want
Would this be acceptable?
W $TRANSLATE($ZDATETIME($HOROLOG,8)," :")
Hope this helps!
w $ZSTRIP($ZDT($H,8),"*P") should give the result you want