{"id":9675,"date":"2026-10-20T00:47:04","date_gmt":"2026-10-20T03:47:04","guid":{"rendered":"https:\/\/simcalculo.com\/pt-br\/date-duration-calculator\/"},"modified":"2026-10-20T00:47:04","modified_gmt":"2026-10-20T03:47:04","slug":"date-duration-calculator","status":"publish","type":"page","link":"https:\/\/simcalculo.com\/en\/date-duration-calculator\/","title":{"rendered":"Date Duration Calculator"},"content":{"rendered":"<style>\r\n    #cfd-0e944ea4-ad83-479a-9b00-ad1b0e302c58-block{max-width: 760px; margin:0 auto;}\r\n    @media (max-width: 640px){\r\n      #cfd-0e944ea4-ad83-479a-9b00-ad1b0e302c58-block .cfd-row{flex-direction:column}\r\n    }\r\n  <\/style>\r\n<div data-simcalculo-tool=\"contador-de-dias\" id=\"cfd-0e944ea4-ad83-479a-9b00-ad1b0e302c58-block\" class=\"simcalculo-tool simcalculo-tool--contador-dias cfd-block\">\r\n<header class=\"cfd-header\"><h2 class=\"title__cat\">Date Duration Calculator<\/h2><p>Count calendar days between two dates. See weeks and days, calendar years and months, and an optional Monday\u2013Friday count.<\/p><\/header><section class=\"cfd-wrap\" data-language=\"en\" data-messages=\"{&quot;title&quot;:&quot;Date Duration Calculator&quot;,&quot;intro&quot;:&quot;Count calendar days between two dates. See weeks and days, calendar years and months, and an optional Monday\\u2013Friday count.&quot;,&quot;formTitle&quot;:&quot;Choose your dates&quot;,&quot;start&quot;:&quot;Start date&quot;,&quot;end&quot;:&quot;End date&quot;,&quot;calculate&quot;:&quot;Calculate duration&quot;,&quot;clear&quot;:&quot;Clear&quot;,&quot;example&quot;:&quot;Use example&quot;,&quot;include&quot;:&quot;Include end date&quot;,&quot;business&quot;:&quot;Show weekdays (Mon\\u2013Fri)&quot;,&quot;help&quot;:&quot;Use the date picker. The date input format follows your browser settings; results use month names. Dates from 1900 through 2099 are supported.&quot;,&quot;rule&quot;:&quot;By default, the start date is included and the end date is excluded. Including the end date adds one calendar day. This is a date-only calculation, with no times of day.&quot;,&quot;result&quot;:&quot;Duration result&quot;,&quot;calendarDays&quot;:&quot;Calendar days&quot;,&quot;weeks&quot;:&quot;Weeks and days&quot;,&quot;calendar&quot;:&quot;Calendar duration&quot;,&quot;weekdayTitle&quot;:&quot;Weekdays (Mon\\u2013Fri)&quot;,&quot;weekend&quot;:&quot;Weekend days&quot;,&quot;period&quot;:&quot;Date range&quot;,&quot;excluded&quot;:&quot;End date excluded&quot;,&quot;included&quot;:&quot;End date included&quot;,&quot;reversed&quot;:&quot;Your dates were in reverse order. The calculator used the earlier date as the start.&quot;,&quot;noHolidays&quot;:&quot;The weekday count excludes Saturdays and Sundays only. It does not deduct public holidays or follow a workplace schedule.&quot;,&quot;withHolidays&quot;:&quot;The configured holiday dates falling on weekdays were deducted. This does not confirm that the list is complete.&quot;,&quot;holidayLoading&quot;:&quot;The configured holiday list is loading.&quot;,&quot;holidayFailed&quot;:&quot;The configured holiday list could not be loaded. This result does not deduct holidays.&quot;,&quot;holidayUpdated&quot;:&quot;Holiday list loaded. Recalculate to include it.&quot;,&quot;years&quot;:&quot;years&quot;,&quot;year&quot;:&quot;year&quot;,&quot;months&quot;:&quot;months&quot;,&quot;month&quot;:&quot;month&quot;,&quot;days&quot;:&quot;days&quot;,&quot;day&quot;:&quot;day&quot;,&quot;week&quot;:&quot;week&quot;,&quot;weekPlural&quot;:&quot;weeks&quot;,&quot;and&quot;:&quot;and&quot;,&quot;calendarNote&quot;:&quot;Calendar years and months are counted in order, with month-end dates clamped to the last valid day. Months are not treated as fixed 30-day periods.&quot;,&quot;copy&quot;:&quot;Copy result&quot;,&quot;copied&quot;:&quot;Result copied.&quot;,&quot;copyFailed&quot;:&quot;Select the result text to copy it.&quot;,&quot;exampleLoaded&quot;:&quot;Example loaded: March 1 to March 8, 2026.&quot;,&quot;complete&quot;:&quot;Duration calculated.&quot;,&quot;cleared&quot;:&quot;Fields cleared.&quot;,&quot;privacy&quot;:&quot;Your dates are calculated in this browser. This calculator does not send your dates to our server, save them in browser storage or transfer them when you change language.&quot;,&quot;toolError&quot;:&quot;Invalid date duration inputs.&quot;}\" data-cfd-config=\"{&quot;mostrarDiasUteis&quot;:true,&quot;incluirDataFinal&quot;:false,&quot;considerarFeriados&quot;:false,&quot;feriadosJsonUrl&quot;:&quot;&quot;}\" id=\"cfd-0e944ea4-ad83-479a-9b00-ad1b0e302c58\" aria-label=\"Date Duration Calculator\">\r\n<h3 class=\"cfd-title\">Choose your dates<\/h3>\r\n<form novalidate><div class=\"cfd-row\"><label class=\"cfd-field\" for=\"cfd-0e944ea4-ad83-479a-9b00-ad1b0e302c58-start\"><span>Start date<\/span><input type=\"date\" name=\"startDate\" min=\"1900-01-01\" max=\"2099-12-31\" id=\"cfd-0e944ea4-ad83-479a-9b00-ad1b0e302c58-start\" class=\"cfd-input cfd-data-inicio\" aria-describedby=\"cfd-0e944ea4-ad83-479a-9b00-ad1b0e302c58-help\"><\/label><label class=\"cfd-field\" for=\"cfd-0e944ea4-ad83-479a-9b00-ad1b0e302c58-end\"><span>End date<\/span><input type=\"date\" name=\"endDate\" min=\"1900-01-01\" max=\"2099-12-31\" id=\"cfd-0e944ea4-ad83-479a-9b00-ad1b0e302c58-end\" class=\"cfd-input cfd-data-fim\" aria-describedby=\"cfd-0e944ea4-ad83-479a-9b00-ad1b0e302c58-help\"><\/label><\/div>\r\n<p id=\"cfd-0e944ea4-ad83-479a-9b00-ad1b0e302c58-help\" class=\"cfd-help\">Use the date picker. The date input format follows your browser settings; results use month names. Dates from 1900 through 2099 are supported.<\/p>\r\n<div class=\"cfd-checks-row\"><label class=\"cfd-check\"><input type=\"checkbox\" class=\"cfd-only-business\" name=\"weekdays\">Show weekdays (Mon\u2013Fri)<\/label><label class=\"cfd-check\"><input type=\"checkbox\" class=\"cfd-include-end\" name=\"includeEnd\" >Include end date<\/label><\/div>\r\n<p class=\"cfd-rule\">By default, the start date is included and the end date is excluded. Including the end date adds one calendar day. This is a date-only calculation, with no times of day.<\/p><div class=\"cfd-buttons-row\"><button type=\"submit\" class=\"cfd-btn cfd-calc\">Calculate duration<\/button><button type=\"button\" class=\"cfd-btn cfd-example\">Use example<\/button><button type=\"reset\" class=\"cfd-btn cfd-clear\">Clear<\/button><\/div>\r\n<p class=\"cfd-status\" role=\"status\" aria-live=\"polite\"><\/p><p class=\"cfd-error cfd-alert\" role=\"alert\" hidden><\/p><\/form>\r\n<div class=\"cfd-result\" role=\"region\" aria-label=\"Duration result\" hidden><div class=\"cfd-hero\"><span>Calendar days<\/span><strong data-days><\/strong><p data-period><\/p><\/div><div class=\"cfd-grid\"><div><h4>Weeks and days<\/h4><strong data-weeks><\/strong><\/div><div><h4>Calendar duration<\/h4><strong data-calendar><\/strong><\/div><div data-weekdays-card hidden><h4>Weekdays (Mon\u2013Fri)<\/h4><strong data-weekdays><\/strong><p data-holidays-note><\/p><\/div><div data-weekend-card hidden><h4>Weekend days<\/h4><strong data-weekend><\/strong><\/div><\/div><p class=\"cfd-note\" data-reversed hidden>Your dates were in reverse order. The calculator used the earlier date as the start.<\/p><p class=\"cfd-note\">Calendar years and months are counted in order, with month-end dates clamped to the last valid day. Months are not treated as fixed 30-day periods.<\/p><button type=\"button\" class=\"cfd-btn cfd-copy\">Copy result<\/button><p role=\"status\" data-copy-status><\/p><\/div>\r\n<p class=\"cfd-privacy\">Your dates are calculated in this browser. This calculator does not send your dates to our server, save them in browser storage or transfer them when you change language.<\/p><\/section><\/div>\r\n\n\n<div class=\"en-editorial\">\n<h2>How to calculate days between two dates<\/h2>\n<p>Enter a start date and an end date, then select Calculate duration. The main result is the number of calendar days. You also get complete weeks plus remaining days, a calendar breakdown in years, months and days, and an optional count of weekdays from Monday through Friday.<\/p>\n<p>Use the calendar controls. Their input format follows your browser settings; the result spells out the month to avoid day\/month ambiguity. The calculator accepts dates from January 1, 1900 through December 31, 2099. It uses Gregorian calendar dates without times of day and calculates in UTC to avoid daylight-saving changes affecting the day count.<\/p>\n<h2>Is the end date included?<\/h2>\n<p>By default, the interval includes the start date and excludes the end date. March 1 to March 8, 2026 is 7 calendar days. Select Include end date to count March 8 as well, giving 8 days.<\/p>\n<p>If both fields contain the same date, the result is zero days by default or one day when the end date is included. The same endpoint rule applies to the optional weekday count: including a Saturday or Sunday adds one calendar day and no weekday.<\/p>\n<h2>Weeks and days versus calendar months<\/h2>\n<p>Complete weeks = floor(calendar days \u00f7 7). Remaining days = calendar days modulo 7. For example, 10 days is 1 week and 3 days. This does not depend on the day of the week on which the interval begins.<\/p>\n<p>The year\/month\/day breakdown uses actual calendar boundaries, not fixed 30-day months or 365-day years. It counts complete years from the earlier date, then complete months, then remaining days. If an anniversary would fall beyond the end of a month, it uses that month&#8217;s last valid day. For example, January 31 to February 28, 2026 is 28 days or 1 calendar month under this rule.<\/p>\n<p>For an inclusive end date, the calendar breakdown is calculated through the day after the entered end date. Calendar-duration conventions can differ between software, especially around month ends; this page states the convention used here.<\/p>\n<h2>How the Monday\u2013Friday count works<\/h2>\n<p>Select Show weekdays (Mon\u2013Fri) to count eligible days in the same interval. Saturdays and Sundays are excluded. From Monday, October 19 to Saturday, October 24, 2026, with the end excluded, there are 5 weekdays. Including that Saturday still gives 5 weekdays.<\/p>\n<p>The default tool does not deduct public holidays, infer your country or follow shift patterns. Its weekday result is not a holiday-aware working-day or legal-deadline calculation. If your deadline uses different inclusion rules or a specific work calendar, check those rules separately.<\/p>\n<h2>What if the dates are reversed?<\/h2>\n<p>The calculator places the earlier date first, returns a nonnegative duration and displays a notice when it has reordered your inputs. It does not return a negative elapsed time or automatically use today&#8217;s date. Both dates must be entered.<\/p>\n<h2>Example: a full week<\/h2>\n<p>For March 1 to March 8, 2026 with the end excluded, the result is 7 days, or 1 week and 0 days. The interval contains 5 weekdays and 2 weekend days. Including March 8 adds a Sunday, giving 8 days, 5 weekdays and 3 weekend days.<\/p>\n<h2>Privacy and language<\/h2>\n<p>The calculation runs in your browser. This calculator does not send the entered dates to our server, save them in browser storage or place them in the page address. Copy result copies the dates and result to your device&#8217;s clipboard only when you select that button.<\/p>\n<p>The <a href=\"https:\/\/simcalculo.com\/pt-br\/contador-de-dias-entre-datas\/\">Portuguese day counter<\/a> uses the same calculation code. Labels, date displays and explanations are localized. The language switch opens the equivalent page without transferring your entered dates.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>How to calculate days between two dates Enter a start date and an end date, then select Calculate duration. The main result is the&hellip;<\/p>\n","protected":false},"author":0,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-9675","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/simcalculo.com\/pt-br\/wp-json\/wp\/v2\/pages\/9675","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/simcalculo.com\/pt-br\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/simcalculo.com\/pt-br\/wp-json\/wp\/v2\/types\/page"}],"replies":[{"embeddable":true,"href":"https:\/\/simcalculo.com\/pt-br\/wp-json\/wp\/v2\/comments?post=9675"}],"version-history":[{"count":0,"href":"https:\/\/simcalculo.com\/pt-br\/wp-json\/wp\/v2\/pages\/9675\/revisions"}],"wp:attachment":[{"href":"https:\/\/simcalculo.com\/pt-br\/wp-json\/wp\/v2\/media?parent=9675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}