dateTimeUtil.js 183 B

12345
  1. export function getDayOfWeek(date) {
  2. const days = ["周日", "周一", "周二", "周三", "周四", "周五", "周六"];
  3. const dayOfWeek = date.getDay();
  4. return days[dayOfWeek];
  5. }