วิธีการคำนวณ Date Difference
learn.whatIsHeading
A date difference calculator finds the number of days, weeks, months, or years between two dates. Used to calculate ages, contract durations, time between events, and project timelines.
คำแนะนำทีละขั้นตอน
- 1Count calendar days: convert both dates to a day number from a fixed epoch, subtract
- 2For years/months: count complete years and months, then remaining days
- 3Leap years must be accounted for (Feb 29 only exists in leap years)
- 4Business days: subtract weekends and optionally public holidays
ตัวอย่างที่มีคำตอบ
อินพุต
Jan 1, 2020 to Jan 1, 2024
ผลลัพธ์
4 years / 1,461 days
Includes leap year 2020 and 2024
อินพุต
March 1 to Aug 31
ผลลัพธ์
184 days / ~26 weeks / 6 months
พร้อมที่จะคำนวณแล้วหรือยัง? ลองใช้เครื่องคิดเลข Date Difference ฟรี
ลองด้วยตัวคุณเอง→