Change Javascript date format

javascript date to string format
javascript date format yyyy-mm-dd
javascript date format dd-mmm-yyyy
how to change date format from dd/mm/yyyy to mm/dd/yyyy in javascript
javascript date output format
javascript date format yyyy-mm-dd hh mm ss
javascript date parse format dd/mm/yyyy
moment format date