How do I return YYYYMMDDHHMM
Hi, I’m using $ZDATETIME to return the following
- USER>w $ZDATETIME($zdth($zstrip("2022-03-29T15:10:00+0100","<>W"), 3,5),3)
- Output: 2022-03-29 15:10:00
I would like to return just the YYYYMMDDHHMM i.e. stripping out the seconds.
Does $ZDATETIME have an option for this?
Product version: IRIS 2022.1
Hi,
You can use 8 for the date format part, but there is no time format parameter for HHMM.
Try with this line :
Hi,
Try below command, this will give you the output in YYYYMMDDHHMM format.
Thanks,
Anusri
you may try
@Tom Bruce
This solution is the most optimized I think.