Check out example codes for "get first monday of month sql". It will help you in understanding the concepts better.

Code Example 1

select DATEADD(wk, DATEDIFF(wk,0,
            dateadd(dd,6-datepart(day,getdate()),getdate())
                               ), 0)  
--Change getdate to your variable

Learn ReactJs, React Native from akashmittal.com