在c#中写法如下:
DateTime day = DateTime.Parse(year.ToString() + "-1-1");
while (day.DayOfWeek != DayOfWeek.Monday)
{
day = day.AddDays(1);
}
DateTime firstDate = Convert.ToDateTime(day.ToString("yyyy/MM/dd"));
求在javascript中写法?
MMTTMM
达令说