📜  获取 dat 捐赠日 - 无论代码示例

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

代码示例1
var daysOfTheWeek = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];

function getDisplay(month, day, year) {
    var d = new Date(year, month-1, day);
    return day + '. ' + daysOfTheWeek[d.getDay()];
}

array_push($dates, getDisplay(7, 4, 2012));