format a date moment

JavaScript
moment(testDate).format('MM/DD/YYYY');
Source

Also in JavaScript: