您可以使用正则表达式:
const regex = /(\d{2})\/(\d{2})\/(\d{4})/; const value = '11/15/2017 12:00:00 AM' const newValue = value.replace(regex, (_, month, day, year) => { return `${day}/${month}/${year}` }) console.log(newValue) // 15/11/2017 12:00:00 AM