Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

Return X Day of Month

By Justin Wagner, 2009/03/03

Call the function just like a stored procedure to get your date.

Make this call from visual studio within a For Loop to get scheduling dates.

I use this function in conjunction with a .Net control that I created for scheduling recurring events. Users can set events on the Nth day of a given month or from a start date to an end date.

 

Total article views: 1076 | Views in the last 30 days: 3
 
Tags
date    
function    
 
Contribute

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones