-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd-subtract-days.html
More file actions
155 lines (150 loc) · 6.52 KB
/
add-subtract-days.html
File metadata and controls
155 lines (150 loc) · 6.52 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>Add Or Subtract Days Calculator - DateKit</title>
<meta name="description" content="Add or subtract days from any date and get the resulting weekday instantly. Free browser-based date offset calculator." />
<meta name="robots" content="index,follow" />
<link rel="canonical" href="https://devtoolbox.dedyn.io/datekit/add-subtract-days.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="Add Or Subtract Days Calculator - DateKit" />
<meta property="og:description" content="Shift any date forward or backward by whole days and check weekdays." />
<meta property="og:url" content="https://devtoolbox.dedyn.io/datekit/add-subtract-days.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="Add Or Subtract Days Calculator - DateKit" />
<meta name="twitter:description" content="Shift any date forward or backward by whole days and check weekdays." />
<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>Add Or Subtract Days</h1>
<p class="subtitle">Shift any base date by positive or negative day offsets and keep weekday context.</p>
<nav class="tool-links" aria-label="DateKit calculators">
<a class="pill-link" href="./">All Date Tools</a>
<a class="pill-link" href="./days-between-dates.html">Days Between Dates</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="math-title">
<h2 id="math-title">Add / Subtract Days</h2>
<label>
Base date
<input id="math-base" type="date" />
</label>
<label>
Days (negative allowed)
<input id="math-days" type="number" step="1" value="30" />
</label>
<button id="math-run" type="button">Compute Result</button>
<div id="math-result" class="result" aria-live="polite"></div>
</article>
</section>
<section class="context" aria-labelledby="add-subtract-notes-title">
<h2 id="add-subtract-notes-title">Use Cases</h2>
<p>Use positive numbers for deadlines and renewal windows. Use negative numbers for lookback periods and retrospective analysis windows.</p>
<p>The result includes both source and destination weekdays so you can spot weekend landings before publishing schedules.</p>
<p>Inputs are whole days to keep calculations predictable for policy cutoffs and contract dates.</p>
<p>Need exact elapsed time between two moments instead? Open <a href="./days-between-dates.html">Days Between Dates</a> for signed day/hour/minute totals.</p>
</section>
<section class="faq" aria-labelledby="add-subtract-faq-title">
<h2 id="add-subtract-faq-title">FAQ</h2>
<details>
<summary>Can I subtract days with this calculator?</summary>
<p>Yes. Enter a negative number to move backward from the base date.</p>
</details>
<details>
<summary>Does it account for leap years?</summary>
<p>Yes. Date math follows the real calendar, including leap years and month-length differences.</p>
</details>
<details>
<summary>Can I use this for recurring schedules?</summary>
<p>Yes. It works well for renewal reminders, notice periods, and compliance windows that use fixed-day offsets.</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": "Add Or Subtract Days Calculator",
"url": "https://devtoolbox.dedyn.io/datekit/add-subtract-days.html",
"applicationCategory": "UtilitiesApplication",
"operatingSystem": "Web",
"description": "Add or subtract whole days from any date and see weekday output.",
"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": "Add Or Subtract Days Calculator",
"item": "https://devtoolbox.dedyn.io/datekit/add-subtract-days.html"
}
]
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "Can I subtract days with this calculator?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Yes. Enter a negative number and the calculator moves backward from the base date."
}
},
{
"@type": "Question",
"name": "Does it account for leap years?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Yes. The calculation follows real calendar rules, including leap years and month-length differences."
}
},
{
"@type": "Question",
"name": "Can I use this for recurring schedules?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Yes. It is useful for renewal reminders, notice periods, and policy windows that use fixed day offsets."
}
}
]
}
</script>
<script src="./app.js" defer></script>
</body>
</html>