📜  我们如何在帖子中显示月份的全名 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:09.895000             🧑  作者: Mango

代码示例1
const monthNames = ["January", "February", "March", "April", "May", "June",
  "July", "August", "September", "October", "November", "December"
];

const d = new Date();
document.write("The current month is " + monthNames[d.getMonth()]);
 Run code snippet