const date = new Date()
let option = {
weekday: "long",
year: "numeric",
month: "long",day: "numeric"
}console.log(new Intl.DateTimeFormat("en-GB", option).format(date))
// Expected output: Wednesday, 10 April 2024
en-US的格式和en-GB的格式区别在于month和day的顺序
en-US的格式为:月/日/年
en-GB的格式为:日/月/年
long和short的区别在于是英文全称还是缩写
numeric指显示数字