I have this stored procedure where uers can enter a start date and an end date and I want them to be able to look up by year and month as well here's what I have so far, how would I incorporate that in my stored procedure?ALTER PROCEDURE [dbo].[AdvSrchIRByDateLstNm]@StartDate datetime = null,@EndDate datetime = null,@Enter_SubjLastName nvarchar(10) = null,@Enter_IR_Number nvarchar(100) = nullAS SELECT dbo.RevisedSubjects_Table.SubjFirstName, dbo.RevisedSubjects_Table.SubjLastName, dbo.Revised_MainTable.[Violation Type], dbo.RevisedSubjects_Table.[IR Number], dbo.Revised_MainTable.[I/RDocument], dbo.Revised_MainTable.Date, dbo.Revised_MainTable.ActionFROM dbo.Revised_MainTable INNER JOIN dbo.RevisedSubjects_Table ON dbo.Revised_MainTable.[IR Number] = dbo.RevisedSubjects_Table.[IR Number]WHERE (@StartDate is null or [Date] >= @StartDate) AND (@EndDate is null or [Date] <= @EndDate)