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
Worked Examples
ઇનપુટ
July 4, 1776
પરિણામ
Thursday
US Independence Day
ઇનપુટ
January 1, 2000
પરિણામ
Saturday
Y2K millennium
ગણતરી માટે તૈયાર છો? મફત Day of the Week કેલ્ક્યુલેટર અજમાવી જુઓ
તેને જાતે અજમાવી જુઓ →