T-1 date

Hello all, can someone tell me how to get T-1 date?

Regards,
Hardik Durgam.

@Hardik_Durgam

Please try this

Now.adddays(-1) will give fulldate with time for t-1

If you want only date then now.AddDays(-1).ToString("MM/dd/yyyy")

Change the dateformat as needed

Chwers

1 Like

@Anil_G thanks for the solution.

Cheers.

1 Like

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