How do I get the last day on the month using SQL Reporting Services

Cory picture Cory · May 17, 2010 · Viewed 52.2k times · Source

In SQL Server Reporting Services, how would I calculate the last day of the current month?

Answer

Cory picture Cory · May 17, 2010

Here is the answer I came up with

=DateSerial(Year(Now()), Month(Now()), "1").AddMonths(1).AddDays(-1)