I want to get all dates by declaring month and year in SQL server.
Can anyone please share easy lines of SQL code to get it.
For example:
If you have a date/time column, then use the month() function:
month()
select t.* from t where month(datecol) = 5;