// "12/22/2017"
new Intl.DateTimeFormat().format(new Date(2017, 11, 22));
// With custom locale
// "22/12/2017"
new Intl.DateTimeFormat('en-GB').format(new Date(2017, 11, 22));
// Customize the formatting
const options = {
year: 'numeric', month: 'numeric', day: 'numeric',
hour: 'numeric', minute: 'numeric', second: 'numeric',
hour12: false,
timeZone: 'America/Los_Angeles'
};
// "12/19/2012, 19:00:00"
new Intl.DateTimeFormat('en-US', options).format(date);