Skip to main content

วิธีการคำนวณ Date to Day of Week

learn.whatIsHeading

A date to day of week calculator determines which day of the week any calendar date falls on. Uses the Doomsday algorithm or JavaScript's built-in Date object for instant results.

สูตร

weekday = (Zeller's congruence or similar algorithm)
date
Date (YYYY-MM-DD) — Input date
weekday
Day of week (text) — Monday, Tuesday, ..., Sunday

คำแนะนำทีละขั้นตอน

  1. 1JavaScript Date parses the date string
  2. 2getDay() returns 0 (Sunday) through 6 (Saturday)
  3. 3The Gregorian calendar repeats every 400 years
  4. 4Any date in history or future can be calculated precisely

ตัวอย่างที่มีคำตอบ

อินพุต
January 1, 2000
ผลลัพธ์
Saturday
อินพุต
July 4, 1776
ผลลัพธ์
Thursday
อินพุต
December 25, 2026
ผลลัพธ์
Friday

คำถามที่พบบ่อย

How can I tell what day a date falls on?

Use Zeller's congruence or a calendar algorithm. The calculator handles this automatically.

What if I need the ISO week number?

ISO weeks run Monday–Sunday, with week 1 containing January 4. Different from US Sunday-start weeks. Specify which standard is needed.

How far back does this work?

Gregorian calendar calculations are valid from Oct 15, 1582 onward. For earlier dates, consult historical sources.

พร้อมที่จะคำนวณแล้วหรือยัง? ลองใช้เครื่องคิดเลข Date to Day of Week ฟรี

ลองด้วยตัวคุณเอง→

การตั้งค่า