-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdays-between-dates.html
More file actions
155 lines (150 loc) · 6.62 KB
/
days-between-dates.html
File metadata and controls
155 lines (150 loc) · 6.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Days Between Dates Calculator - DateKit</title>
<meta name="description" content="Calculate days, hours, and minutes between two dates with signed output. Fast browser-based days between dates calculator." />
<meta name="robots" content="index,follow" />
<link rel="canonical" href="https://devtoolbox.dedyn.io/datekit/days-between-dates.html" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="DateKit" />
<meta property="og:locale" content="en_US" />
<meta property="og:title" content="Days Between Dates Calculator - DateKit" />
<meta property="og:description" content="Find exact days, hours, and minutes between two date-time values." />
<meta property="og:url" content="https://devtoolbox.dedyn.io/datekit/days-between-dates.html" />
<meta property="og:image" content="https://devtoolbox.dedyn.io/og/default.png" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Days Between Dates Calculator - DateKit" />
<meta name="twitter:description" content="Find exact days, hours, and minutes between two date-time values." />
<meta name="twitter:image" content="https://devtoolbox.dedyn.io/og/default.png" />
<meta name="theme-color" content="#0f172a" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=IBM+Plex+Mono:wght@400;600&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="./styles.css" />
</head>
<body>
<div class="bg-orb bg-orb-a"></div>
<div class="bg-orb bg-orb-b"></div>
<main class="page">
<header class="hero">
<p class="kicker">DateKit</p>
<h1>Days Between Dates Calculator</h1>
<p class="subtitle">Measure exact time gaps between two moments with signed days, hours, and minutes.</p>
<nav class="tool-links" aria-label="DateKit calculators">
<a class="pill-link" href="./">All Date Tools</a>
<a class="pill-link" href="./add-subtract-days.html">Add Or Subtract Days</a>
<a class="pill-link" href="./unix-timestamp-converter.html">Unix Converter</a>
</nav>
</header>
<section class="grid single-grid">
<article class="card" aria-labelledby="diff-title">
<h2 id="diff-title">Date Difference</h2>
<label>
Start
<input id="diff-start" type="datetime-local" />
</label>
<label>
End
<input id="diff-end" type="datetime-local" />
</label>
<button id="diff-run" type="button">Calculate Difference</button>
<div id="diff-result" class="result" aria-live="polite"></div>
</article>
</section>
<section class="context" aria-labelledby="days-between-notes-title">
<h2 id="days-between-notes-title">How This Calculator Counts</h2>
<p>The result is signed. If the end date is earlier than the start date, values are negative.</p>
<p>Use date and time values when you need partial-day precision. For day-only planning, set both times to midnight.</p>
<p>You get a compact duration plus decimal days, hours, and minutes so you can reuse the numbers in project plans and reminders.</p>
<p>Need Unix-friendly output? Use the <a href="./unix-timestamp-converter.html">Unix Timestamp Converter</a> to move between human time and API timestamps.</p>
</section>
<section class="faq" aria-labelledby="days-between-faq-title">
<h2 id="days-between-faq-title">FAQ</h2>
<details>
<summary>Does this include both start and end dates?</summary>
<p>No. It calculates elapsed time between the two values. For inclusive day counts, add one day to the result.</p>
</details>
<details>
<summary>Can I calculate business days only?</summary>
<p>This tool returns calendar duration. For business-day schedules, use the result as a baseline and then remove weekends/holidays separately.</p>
</details>
<details>
<summary>Why do I see negative values?</summary>
<p>Negative values mean your end date is earlier than your start date, which is useful for overdue checks and lookback windows.</p>
</details>
</section>
<footer class="footer">
<a href="/" aria-label="Back to DevToolbox home">Back to DevToolbox</a>
<button id="copy-link" type="button">Copy URL</button>
<span id="copy-status" class="copy-status" aria-live="polite"></span>
</footer>
</main>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "Days Between Dates Calculator",
"url": "https://devtoolbox.dedyn.io/datekit/days-between-dates.html",
"applicationCategory": "UtilitiesApplication",
"operatingSystem": "Web",
"description": "Calculate signed days, hours, and minutes between two dates.",
"isAccessibleForFree": true
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "DateKit",
"item": "https://devtoolbox.dedyn.io/datekit/"
},
{
"@type": "ListItem",
"position": 2,
"name": "Days Between Dates Calculator",
"item": "https://devtoolbox.dedyn.io/datekit/days-between-dates.html"
}
]
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "Does this include both start and end dates?",
"acceptedAnswer": {
"@type": "Answer",
"text": "No. The calculator returns elapsed time between the two values. Add one day yourself if you need an inclusive day count."
}
},
{
"@type": "Question",
"name": "Can I calculate business days only?",
"acceptedAnswer": {
"@type": "Answer",
"text": "This tool returns calendar duration. Use the output as a baseline, then remove weekends and holidays for business-day estimates."
}
},
{
"@type": "Question",
"name": "Why do I see negative values?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Negative values mean the end date is earlier than the start date."
}
}
]
}
</script>
<script src="./app.js" defer></script>
</body>
</html>