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

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Financial Month

By Kartik M Kumar,

Use this function wherever you want to have a index based on the financial Monther Order rather then Calander Month Order


This function will return the respective Financial Month Code, when the Calander Month Code is given as input for this function


e.g. For April, The Calander Month Code is '04' where as the Financial Month Code is '01' as all financial years started with April.

Similarly for January the Calander Month Code is '01' whereas the Financial Year Code is '10'

Total article views: 1474 | Views in the last 30 days: 12
Related Articles

Financial Month

Comments posted to this topic are about the item [B]Financial Month[/B] Please provide details :-) A...


Days of month function

Functions return tables with days of the specified month.


Function to get number of days in month

Function to get number of days in month


Financial Year Query

Condition for Financial Year.


Month Name

Function to return the Month Name for month number input


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

Already a member? Jump in:

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