SQL Server 2008

Get first & last day of the month

I’m building a Stored Procedure and Report that sets the default start date as the first day of the month one (1) month ago. Can easily be adapted to this month, twelve (12) months ago, etc.

Can be achieved like so:

In SQL:

In SSRS:

Share on Google Plus

Mike250

Australian. Sport. Passionate Cricket Fan. Go Pro. Abseiling. Snorkeling. Travel. Golf R. SQL Server Developer. Three sons. One daughter. Last Trip: Tasmania.

Leave a comment

Your email address will not be published. Required fields are marked *