How can I get current month in number in SQL Server?
Means for January I want 1 and for December I want 12.
How about this:
SELECT MONTH(GETDATE())
This will return values 1 through 12 depending on the month.
See the relevant MSDN documentation for details - that entire documentation site is freely available for consultation by everyone - use it!
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments