you can create your query with the help of following query...
DECLARE @Month int
DECLARE @Year int
set @Month = 2
set @Year = 2014
select DATEADD(month,@Month-1,DATEADD(year,@Year-1900,0))
select DATEADD(day,-1,DATEADD(month,@Month,DATEADD(year,@Year-1900,0)))