Skip to main content

Day of the Week کا حساب کیسے لگائیں

Day of the Week کیا ہے؟

A day-of-week calculator determines what day of the week any given date falls on. The Doomsday algorithm (Conway) or modular arithmetic can compute this for any date in the Gregorian calendar.

مرحلہ وار گائیڈ

  1. 1Use the formula: (d + m + y + y/4 − y/100 + y/400 + c) mod 7
  2. 2d=day, m=month code, y=year, c=century adjustment
  3. 3Or simply count forward/backward from a known reference date
  4. 4JavaScript: new Date("YYYY-MM-DD").getDay() → 0=Sunday, 6=Saturday

حل شدہ مثالیں

ان پٹ
July 4, 1776
نتیجہ
Thursday
US Independence Day
ان پٹ
January 1, 2000
نتیجہ
Saturday
Y2K millennium

حساب کے لیے تیار ہیں؟ مفت Day of the Week کیلکولیٹر آزمائیں۔

اسے خود آزمائیں →

ترتیبات