Format date to dd-MMM-yyyy in Javascript

How to Format given date to dd-MMM-yyyy in Javascript