I want to make a new variable of type Date by passing the Month and Year
I don't know the syntax, but maybe something like:
DECLARE @Date Date
SET @Month(Date) = @Month
SET @Year(Date) = @Year
The Month and Year are some parameters of my application.