Regular expression modifies date format

can I use regular expressions to modify the date format
7-10 to July 10
10-10 to October 10

Apr.01,2021

"7-10". Replace (/ (\ d +)-(\ d +) / g,'$January $2'); 10-10 in the same way

Menu