I have date data in below format
2020-10-07 05:21:15.
I want to convert it into Wed,7 Oct'20 -05:21pm.
I tried with regex
(new Date(2020-10-07 05:21:15)).toString().replace(/\S+\s(\S+)\s(\d+)\s(\d+)\s.*/,'$1 $2,$3')
But im getting output Oct7,2020,
Can anyone help me out with javascript or regex to format it.