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.
దశల వారీ గైడ్
- 1Use the formula: (d + m + y + y/4 − y/100 + y/400 + c) mod 7
- 2d=day, m=month code, y=year, c=century adjustment
- 3Or simply count forward/backward from a known reference date
- 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 కాలిక్యులేటర్ని ప్రయత్నించండి
దీన్ని మీరే ప్రయత్నించండి →