title: how to get date of 1st week of current month
body: <p>I have to get/create date (date of first week) from the user input of day name
  Examples-
           if  input saturday then date should be 7 (for current month 1st saturday)
           if input sunday then date 1 (current month 1st sunday)
  I am having to use lot of logic to get the date but couldn't get exact output
  any suggestions on how to come up with the SQL query for such a function ?</p>