{"id":393230,"date":"2026-11-06T02:56:02","date_gmt":"2026-11-06T02:56:02","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/ci-date-calculator\/"},"modified":"2026-11-06T02:55:24","modified_gmt":"2026-11-06T02:55:24","slug":"ci-date-calculator","status":"publish","type":"plugin","link":"https:\/\/de.wordpress.org\/plugins\/ci-date-calculator\/","author":20976408,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1.0","stable_tag":"1.1.0","tested":"7.1.4","requires":"5.0","requires_php":"7.4","requires_plugins":null,"header_name":"CI Date Calculator","header_author":"www.calculator.io \/ Date Calculator","header_description":"Calculate the exact time between two dates with our free Date Calculator.","assets_banners_color":"","last_updated":"2026-11-06 02:55:24","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/www.calculator.io\/date-calculator\/","header_author_uri":"https:\/\/www.calculator.io\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":135,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.1.0":{"tag":"1.1.0","author":"calculatorio","date":"2026-11-06 02:55:24","revision":3787010}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3787009,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3787009,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":[],"assets_blueprints":{"blueprint.json":{"filename":"blueprint.json","revision":3787013,"resolution":false,"location":"assets","locale":"","contents":"{\"landingPage\":\"\\\/wp-admin\\\/plugins.php\",\"preferredVersions\":{\"php\":\"latest\",\"wp\":\"latest\"},\"phpExtensionBundles\":[\"kitchen-sink\"],\"features\":{\"networking\":true},\"steps\":[{\"step\":\"installPlugin\",\"options\":{\"activate\":true},\"pluginData\":{\"resource\":\"wordpress.org\\\/plugins\",\"slug\":\"ci-date-calculator\"}},{\"step\":\"login\",\"username\":\"admin\",\"password\":\"password\"}]}"}},"all_blocks":[],"tagged_versions":["1.1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3787009,"resolution":"1","location":"assets","locale":"","width":1745,"height":425},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3787009,"resolution":"2","location":"assets","locale":"","width":3231,"height":369}},"screenshots":{"1":"The Date Calculator input form: Start Date, End Date, Years, Months, Weeks, Days, Holiday, Month, Day.","2":"The Date Calculator results: Date, shown in years, months, weeks, days, hours, minutes, seconds."}},"plugin_section":[],"plugin_tags":[290992,290993,214078,290991,290990],"plugin_category":[],"plugin_contributors":[222827],"plugin_business_model":[],"class_list":["post-393230","plugin","type-plugin","status-publish","hentry","plugin_tags-add-days-to-date","plugin_tags-business-days-calculator","plugin_tags-date-calculator","plugin_tags-date-difference-calculator","plugin_tags-days-between-dates","plugin_contributors-calculatorio","plugin_committers-calculatorio"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/ci-date-calculator\/assets\/icon-128x128.png?rev=3787009","icon_2x":"https:\/\/ps.w.org\/ci-date-calculator\/assets\/icon-256x256.png?rev=3787009","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/ci-date-calculator\/assets\/screenshot-1.png?rev=3787009","caption":"The Date Calculator input form: Start Date, End Date, Years, Months, Weeks, Days, Holiday, Month, Day."},{"src":"https:\/\/ps.w.org\/ci-date-calculator\/assets\/screenshot-2.png?rev=3787009","caption":"The Date Calculator results: Date, shown in years, months, weeks, days, hours, minutes, seconds."}],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<p>Add the calculator to any page, post or widget area with the shortcode <code>[ci_date_calculator]<\/code>.<\/p>\n\n<p><strong>What you enter:<\/strong> Start Date, End Date, Years, Months, Weeks, Days, Holiday, Month, Day.<\/p>\n\n<p><strong>What you get:<\/strong> Date, shown in years, months, weeks, days, hours, minutes, seconds.<\/p>\n\n<p>Features:<\/p>\n\n<ul>\n<li>Works as soon as it is activated: no account, no API key and no settings page.<\/li>\n<li>Calculates in your visitor's browser. Nothing they type is sent to calculator.io or anywhere else, and the plugin loads no ads, trackers or external scripts.<\/li>\n<li>Responsive: the form and the results sit side by side on wide pages and stack on narrow ones. The frame resizes itself to fit the calculator.<\/li>\n<li>Optional light, dark or automatic (follows the visitor's system setting) theme, a custom accent colour and a maximum width, all set in the shortcode.<\/li>\n<li>The calculator runs in an iframe, so your theme's styles cannot break it and it cannot break your theme.<\/li>\n<\/ul>\n\n<p>More about this calculator: <a href=\"https:\/\/www.calculator.io\/date-calculator\/\">https:\/\/www.calculator.io\/date-calculator\/<\/a><\/p>\n\n<h3>Usage<\/h3>\n\n<p>Add the Date Calculator shortcode to your page, post or sidebar:<\/p>\n\n<pre><code>[ci_date_calculator]\n<\/code><\/pre>\n\n<p>Or add the following code to your template where you would like the Date Calculator to appear:<\/p>\n\n<pre><code>&lt;?php echo do_shortcode( '[ci_date_calculator]' ); ?&gt;\n<\/code><\/pre>\n\n<p>All attributes are optional:<\/p>\n\n<ul>\n<li><code>title<\/code> - <code>1<\/code> (default) shows the calculator heading with its icon, <code>0<\/code> hides it. Example: <code>[ci_date_calculator title=\"0\"]<\/code><\/li>\n<li><code>theme<\/code> - <code>light<\/code> (default), <code>dark<\/code>, or <code>auto<\/code> to follow the visitor's light\/dark system setting. Example: <code>[ci_date_calculator theme=\"auto\"]<\/code><\/li>\n<li><code>accent<\/code> - an accent colour for buttons and highlights, as a hex value. Example: <code>[ci_date_calculator accent=\"#2563eb\"]<\/code><\/li>\n<li><code>max_width<\/code> - the widest the calculator may be: a number followed by <code>px<\/code>, <code>%<\/code> or <code>rem<\/code>. The calculator is centred when it is narrower than its column. Example: <code>[ci_date_calculator max_width=\"720px\"]<\/code><\/li>\n<\/ul>\n\n<p>Attributes can be combined: <code>[ci_date_calculator title=\"0\" theme=\"auto\" accent=\"#2563eb\" max_width=\"720px\"]<\/code><\/p>\n\n<h3>Source code and libraries<\/h3>\n\n<p>The plugin's own JavaScript and CSS are shipped unminified and human-readable: <code>assets\/js\/*.js<\/code> (except <code>assets\/js\/lib\/<\/code>), <code>assets\/css\/main.css<\/code>, <code>assets\/css\/ci-widget.css<\/code>, <code>assets\/css\/ci-embed.css<\/code> and the PHP file. <code>main.css<\/code> is the compiled, unminified stylesheet of calculator.io. The calculator is also published on the calculator.io website: https:\/\/www.calculator.io\/date-calculator\/<\/p>\n\n<p>Third-party libraries bundled in <code>assets\/js\/lib\/<\/code>. Where a file is minified, the readable source is available at the upstream address:<\/p>\n\n<ul>\n<li>math.js 3.37.1 (Apache-2.0) - <code>assets\/js\/lib\/math.min.js<\/code>, minified build. Source: https:\/\/github.com\/josdejong\/mathjs<\/li>\n<li>marked 15.0.12 (MIT) - <code>assets\/js\/lib\/marked.min.js<\/code>, minified build. Source: https:\/\/github.com\/markedjs\/marked<\/li>\n<li>Inputmask 5.0.9-beta.70 (MIT) - <code>assets\/js\/lib\/input-mask.min.js<\/code>, minified build. Source: https:\/\/github.com\/RobinHerbots\/Inputmask<\/li>\n<li>lazysizes 5.3.2 (MIT) - <code>assets\/js\/lib\/lazysizes.js<\/code>. Source: https:\/\/github.com\/aFarkas\/lazysizes<\/li>\n<li>Air Datepicker 3.3.0 (MIT) - <code>assets\/js\/lib\/air-datepicker.js<\/code>. Source: https:\/\/github.com\/t1m0n\/air-datepicker<\/li>\n<li>Inter font (SIL Open Font License 1.1) - <code>assets\/fonts\/inter-v20-latin.woff2<\/code>. Source: https:\/\/github.com\/rsms\/inter<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the \/ci-date-calculator\/ folder to the \/wp-content\/plugins\/ directory, or install the plugin from the Plugins screen.<\/li>\n<li>Activate the Date Calculator plugin through the \"Plugins\" menu in WordPress.<\/li>\n<li>Add the <code>[ci_date_calculator]<\/code> shortcode to a page or post.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"how%20do%20i%20add%20the%20calculator%20to%20a%20page%3F\"><h3>How do I add the calculator to a page?<\/h3><\/dt>\n<dd><p>Add the shortcode <code>[ci_date_calculator]<\/code> to a page or post. In the block editor use a Shortcode block. In a theme template use <code>&lt;?php echo do_shortcode( '[ci_date_calculator]' ); ?&gt;<\/code>.<\/p><\/dd>\n<dt id=\"which%20shortcode%20attributes%20are%20available%3F\"><h3>Which shortcode attributes are available?<\/h3><\/dt>\n<dd><p>title (1 or 0), <code>theme<\/code> (light, dark or auto), <code>accent<\/code> (a hex colour such as #2563eb) and <code>max_width<\/code> (for example 720px, 80% or 40rem). See the Usage section for examples. Invalid values are ignored and the default is used instead.<\/p><\/dd>\n<dt id=\"how%20do%20i%20get%20a%20dark%20calculator%3F\"><h3>How do I get a dark calculator?<\/h3><\/dt>\n<dd><p>Use <code>theme=\"dark\"<\/code> for always dark, or <code>theme=\"auto\"<\/code> to follow the visitor's light\/dark system setting. The default, <code>theme=\"light\"<\/code>, keeps the calculator light on any background.<\/p><\/dd>\n<dt id=\"can%20i%20hide%20the%20heading%3F\"><h3>Can I hide the heading?<\/h3><\/dt>\n<dd><p>Yes. Use <code>title=\"0\"<\/code> and the heading with the calculator's icon is not printed, so you can write your own.<\/p><\/dd>\n<dt id=\"does%20the%20plugin%20send%20data%20anywhere%3F\"><h3>Does the plugin send data anywhere?<\/h3><\/dt>\n<dd><p>No. The calculation happens in the visitor's browser, nothing they enter leaves the page, and the plugin makes no requests to calculator.io or any other external service. It sets no cookies and loads no ads or trackers.<\/p><\/dd>\n<dt id=\"the%20calculator%20is%20the%20wrong%20height%20or%20has%20a%20scrollbar.\"><h3>The calculator is the wrong height or has a scrollbar.<\/h3><\/dt>\n<dd><p>The frame adjusts its height automatically while the page is open. If your theme or a caching or optimisation plugin removes scripts from the page, the frame keeps a default height; exclude the plugin's <code>ci-embed.js<\/code> file from script optimisation.<\/p><\/dd>\n<dt id=\"how%20do%20i%20calculate%20the%20number%20of%20days%20between%20two%20dates%3F\"><h3>How do I calculate the number of days between two dates?<\/h3><\/dt>\n<dd><p>Open the date calculator, which auto-fills the Start Date and End Date with today's date, then change the End Date to your target date and press Calculate. It returns the exact number of days without any mental math or manual counting of days per month.<\/p><\/dd>\n<dt id=\"how%20do%20i%20count%20only%20business%20days%20between%20two%20dates%3F\"><h3>How do I count only business days between two dates?<\/h3><\/dt>\n<dd><p>Click the Settings button next to the Calculate button and choose to exclude weekends and public holidays from the total. This leaves you with only the working days between the two dates.<\/p><\/dd>\n<dt id=\"how%20do%20i%20find%20out%20how%20long%20it%20has%20been%20since%20a%20past%20date%3F\"><h3>How do I find out how long it has been since a past date?<\/h3><\/dt>\n<dd><p>Set the End Date to today and the Start Date to the earlier date, such as an anniversary or a milestone event, then press Calculate. The tool shows exactly how much time has passed between them.<\/p><\/dd>\n<dt id=\"why%20does%20the%20number%20of%20days%20sometimes%20change%20in%20a%20leap%20year%3F\"><h3>Why does the number of days sometimes change in a leap year?<\/h3><\/dt>\n<dd><p>A leap year adds an extra day (February 29), so the same date range can be one day longer. For example, the span from January 23 to April 5 is 72 days normally but 73 days in a leap year.<\/p><\/dd>\n<dt id=\"can%20i%20exclude%20specific%20days%20like%20vacations%20or%20sick%20leave%20from%20the%20total%3F\"><h3>Can I exclude specific days like vacations or sick leave from the total?<\/h3><\/dt>\n<dd><p>Yes. Besides excluding weekends and public holidays in Settings, you can manually exclude individual dates, such as personal vacation days or sick leave, by adding them at the bottom of the tool before you calculate.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>New shortcode attributes: <code>title<\/code>, <code>theme<\/code> (light, dark, auto), <code>accent<\/code> and <code>max_width<\/code><\/li>\n<li>Responsive layout: form and results wrap into one column on narrow pages, wide tables scroll inside their own box<\/li>\n<li>The frame now follows the calculator's height when it changes or the window is resized<\/li>\n<li>Fixed the missing heading icon<\/li>\n<li>The plugin's JavaScript and CSS are now shipped unminified<\/li>\n<li>The WordPress-side script and styles load only on pages that use the shortcode<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Removed leftover files of earlier plugin versions<\/li>\n<li>Tested up to WordPress 7.1<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release of Date Calculator<\/li>\n<\/ul>","raw_excerpt":"Calculate the exact time between two dates with our free Date Calculator.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/393230","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=393230"}],"author":[{"embeddable":true,"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/calculatorio"}],"wp:attachment":[{"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=393230"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=393230"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=393230"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=393230"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=393230"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=393230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}