Hi Xplain,
See the following query.
select DateDiff(d,getdate(), Dateadd(m, 1, getdate())) as NoOFDays
I have used system date function getdate() as an example. You can form the date when a month is supplied.
Suppose a month & year is passed
you can form the date by concatenating
month/day/year
month & year can be passed & day can be kept constant as 1.
Hope this helps.
Mukund.