How to display yesterdays date in SSRS expression

SqlLearner picture SqlLearner · Sep 5, 2014 · Viewed 30.4k times · Source

In one of the column name, I need to display yesterday's date like - September 4,2014

I used DateAdd("d",-1,Today()) function to display,but it is displaying like - 9/4/2014 12:00:00 AM.

How can i get the above format like - monthname,dd,YYYY ?

Answer

Tak picture Tak · Sep 5, 2014

Use .. =format(dateadd("d", -1, today()), "MMMM dd,yyyy")