{"category":"calc","endpoint":"https://setget.net/v1/tools/date-diff","examples":[{"input":{"end":"2026-12-25","start":"2026-01-01"},"output":{"calendar":{"days":24,"hours":0,"minutes":0,"months":11,"seconds":0,"years":0},"end":"2026-12-25","negative":false,"start":"2026-01-01","text":"11 months and 24 days","total":{"days":358,"hours":8592,"minutes":515520,"seconds":30931200,"weeks":51.142857}}},{"input":{"end":"2026-03-05","start":"2024-01-31"},"output":{"calendar":{"days":5,"hours":0,"minutes":0,"months":1,"seconds":0,"years":2},"end":"2026-03-05","negative":false,"start":"2024-01-31","text":"2 years, 1 month and 5 days","total":{"days":764,"hours":18336,"minutes":1100160,"seconds":66009600,"weeks":109.142857}},"title":"Across a leap year and a month end"}],"input_schema":{"additionalProperties":false,"properties":{"end":{"description":"The second date or date and time.","examples":["2026-12-25"],"maxLength":40,"type":"string"},"start":{"description":"The first date or date and time.","examples":["2026-01-01"],"maxLength":40,"type":"string"}},"required":["start","end"],"type":"object"},"keywords":["days between dates","date difference","how many days until","date calculator","days since","weeks between dates","time between dates"],"related":["date-add","age-calculator","business-days"],"slug":"date-diff","summary":"Find the time between two dates: total days, weeks, hours, minutes and seconds, plus years, months and days.","tier":"inline","title":"Date difference calculator","url":"https://setget.net/tools/date-diff"}
