'How to get the week start in this format '07-Feb-22' in SQL server

Hi there please help me . I'm using this code

Weekstart = DATEDD(Wk, DATEDIFF(d,0,CONVERT(DATE, GETDATE(),103)) / 7,0)

This above query is given me the output in this format '2022-02-07 00:00:00.000' however I want the date in this format '07-Feb-22'



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source