How to get Yesterday's date?

Did you try

now.AddDays(-1).ToShortDateString.Replace(“/”,“.”)

or

now.AddDays(-1).ToString(“dd.MM.yyyy”)

19 Likes