Display Month name and year if date is like 11-2021 [closed]

I am using datapicker on my page and I have to show only month name and year in the date. It’s inserted like like 11-2021, 12-2021 or 1-2022.

Now What I am doing is, I have to get the Month name and year

Expected output is November 2021 December 2021 or January 2022

I have tried below code

    $startDate=strtotime('11-2021');
    $month=date("F",$startDate);
    $year=date("Y",$startDate);