How can I edit the Date format? [duplicate]

I have an application which can be used to organize exams. There is a span to demonstrate registration date. Here is how I did it:

let getDate = new Date();

But the thing is it shows whole information about time but I only need date and month. E.g. 12 March.

So can you please suggest any method or piece of code to do this?