Calculate the exact time between two dates with our free Date Calculator. Easily add or subtract days, weeks, and months, or find business days instantly.
Add the calculator to any page, post or widget area with the shortcode [ci_date_calculator].
What you enter: Start Date, End Date, Years, Months, Weeks, Days, Holiday, Month, Day.
What you get: Date, shown in years, months, weeks, days, hours, minutes, seconds.
Features:
More about this calculator: https://www.calculator.io/date-calculator/
Add the Date Calculator shortcode to your page, post or sidebar:
[ci_date_calculator]
Or add the following code to your template where you would like the Date Calculator to appear:
<?php echo do_shortcode( '[ci_date_calculator]' ); ?>
All attributes are optional:
title – 1 (default) shows the calculator heading with its icon, 0 hides it. Example: [ci_date_calculator title="0"]theme – light (default), dark, or auto to follow the visitor’s light/dark system setting. Example: [ci_date_calculator theme="auto"]accent – an accent colour for buttons and highlights, as a hex value. Example: [ci_date_calculator accent="#2563eb"]max_width – the widest the calculator may be: a number followed by px, % or rem. The calculator is centred when it is narrower than its column. Example: [ci_date_calculator max_width="720px"]Attributes can be combined: [ci_date_calculator title="0" theme="auto" accent="#2563eb" max_width="720px"]
The plugin’s own JavaScript and CSS are shipped unminified and human-readable: assets/js/*.js (except assets/js/lib/), assets/css/main.css, assets/css/ci-widget.css, assets/css/ci-embed.css and the PHP file. main.css is the compiled, unminified stylesheet of calculator.io. The calculator is also published on the calculator.io website: https://www.calculator.io/date-calculator/
Third-party libraries bundled in assets/js/lib/. Where a file is minified, the readable source is available at the upstream address:
assets/js/lib/math.min.js, minified build. Source: https://github.com/josdejong/mathjsassets/js/lib/marked.min.js, minified build. Source: https://github.com/markedjs/markedassets/js/lib/input-mask.min.js, minified build. Source: https://github.com/RobinHerbots/Inputmaskassets/js/lib/lazysizes.js. Source: https://github.com/aFarkas/lazysizesassets/js/lib/air-datepicker.js. Source: https://github.com/t1m0n/air-datepickerassets/fonts/inter-v20-latin.woff2. Source: https://github.com/rsms/inter