Need to select yesterday date

Hi all,

I need to get yesterday’s date in the format “yyyy-MM-dd”.
I am trying with this “datetime.Now.ToString(“yyyy-MM-dd”)” please someone do needful.

Hi @HeartCatcher
Try this expression
Datetime.now.adddays(-1).tostring(“yyyy-MM-dd”)

Regards
Gokul

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.