Question Christine Nyamu · Feb 27, 2024

Get Yesterday's Date

I am trying to figure out how to get yesterday's date in object script in the format yyyy-dd-mm. Any help would be greatly appreciated. 

Product version: IRIS 2023.1

Comments

Prasanth Annamreddy · Feb 27, 2024

Hi Christine,

You can try this

Set yesterday = $zdt($h-1,3)
Write yesterday

0
Christine Nyamu  Feb 27, 2024 to Prasanth Annamreddy

Thank you @Prasanth.Annamreddy. That worked! 

0