Want to create an online date calculator? This guide will show you how to make a beautiful date calculator step-by-step and code-free!
Approximate read time: 5.5 minutes
If you want to help site visitors with travel planning, appointment scheduling, or estimating delivery dates, a good date calculator can improve the user experience on your site.
And it can be super simple to do.
In fact, with the right WordPress plugin, you won’t even have to write a line of code! Phew!
Let’s look at a few ways date calculators can help your website. Then, we'll see how easy it is to create our own.
Who can use a date calculator on their website?
- 🛍️ eCommerce sites - Show customers when they’ll receive their order with different delivery options with a shipping calculator
- 🛫 Travel & tour providers - Find travel dates or add a visa calculator to count the total number of days spent in a country during a certain period
- 🩺 Health & well-being - Offer a pregnancy due date calculator, suggest dates for follow-up appointments, or track how long patients have kept up healthy habits
- 🎪 Event websites - Get people excited for your event with a countdown to a specific date and time
And those are only a few ways this tool can benefit you and your site visitors.
Now we know what's possible, let’s look at the fastest and easiest way to create a date calculator for WordPress — the Formidable Forms Datepicker Options plugin!
Formidable Forms online date calculator builder
Formidable Forms already made building custom online calculators easy.
Our WordPress calculator plugin comes with pre-built templates for making mortgage calculators, age calculators, time addition calculators, BMI calculators, and more.
And now, thanks to Formidable’s new and improved time and datepicker, you can also create date-to-date and date-difference calculators.
The plugin even lets you black out dates to exclude weekends and holidays.
So, whether you need to know the date 365 days from today or want to determine how long it took to complete a project, Formidable has you covered.
How to make a date calculator online without coding
Step 1: Install and activate Formidable Forms
If you haven't already, install and activate Formidable Forms Pro.
Then, from your WordPress dashboard, go to Formidable → Add-Ons and click the Install button for the WordPress Datepicker Options plugin.
Step 2: Create a form with at least one date field
Next, click Forms → + Add New to make a new form. Choose one of our templates or Create a blank Form to create yours from the ground up.
In the form builder, drag and drop to add fields to your form.
For this example, we want our time calculator to tell us the date a certain number of years, months, weeks, or days before or after another date.
So, let’s go ahead and add date fields, radio buttons, and a number field.
Got it all set up? Great!
Now it’s time to work magic and make our form do the math for us.
Step 3: Set up date calculations
So our calculator can crunch the numbers, we need to add formulas to our second date field.
Oh no, not equations. 😩 Don’t panic — we promise it’s way easier than in Excel!
All we need to do is double-click on the result date field to display the Field Options.
Under the Advanced section, click the calculate button in the Default Value box to access date calculations.
Set the Start date, then use the Date Difference field to insert dynamic values from other form fields or a preset formula.
Here are a couple of shortcodes and calculations that can help:
Date difference calculator
To calculate the number of days, weeks, months, or years between two dates
- Current date and a future date
- Start date: [date]
- Date difference: [end date field id] - [start date field id]
- Two chosen dates
- Start date: [start date field id]
- Date difference: [end date field id] - [start date field id]
Want to include the last day? Add 1 to the formula, and you're good to go!
👉 For more help, follow along with our step-by-step guide on how to calculate days between dates.
Find the date a certain amount of time before or after a date
Add to or subtract from the starting date
- Start date: [start date field id]
- Date difference: [operator][period][start date field id]
👉 Check out our article on how to calculate a day from a date for more details. You can also find all of the accepted date formats and supported formulas in this knowledge base post.
Step 4: Publish your form!
Still with us? Awesome, you’re almost finished!
The last thing left is to publish your date calculator on your website. And fortunately, Formidable Forms makes it even easier than algebra. 😅
First, click Update in the upper right corner of the form builder to save your calculator form. Then, open the WordPress post or page where you want to publish it.
Add the Formidable Forms block in the WordPress editor and pick your calculator from the dropdown.
Update or Publish the page or post, and you’re all done! Your custom date calculator is now online! 🙌
Ready to add an online date calculator to your website?
The many benefits of web calculators add up. And the biggest may be a boost in backlinks.
By making a helpful tool visitors love, you will get more shares and multiply traffic and engagement.
And now that you know there’s such a quick and easy way to build a WordPress date calculator without code (or calculus), what are you waiting for? ⏱️
Grab the only WordPress form maker you'll ever need now and watch your website grow exponentially!
If you were wondering, Formidable Forms can do much more than create date calculators. It's the most powerful WordPress form builder, perfect for making surveys, signup forms, online quizzes, charts, and graphs. 📊
Discover all of Formidable's features, and then follow us on Facebook, Twitter, and YouTube for more WordPress wisdom.
waypointwell@gmail.com says
Is it possible to combine units (days and months) into a single calculation? i.e. [date]+[x][days]+[x][months]?
jonathan@strategy11.com says
Hey there,
We have responded to your question in the help ticket you recently opened.
Best,
jpruitt says
This provides great functionality to Formidable's calendars.
Veruska says
I've been a Formidable's client for many years and this addition helped me a lot because one of my clients need his form to authorize submission based on the age of the students. It eliminated the need to code to display that data.
milkboy31 says
Love that you can black-out dates.
lnewsom@gmail.com says
Is there a way to incorporate just the results field as inline text in my page? As in:
Only _28_ days until the big event!
Can I add this results field to the Countdown Timer in the Divi module, then embed in a text field?
Jonathan A says
Hey,
Thank you for reaching out! Could you create a new ticket here: https://formidableformscom.bigscoots-staging.com/new-topic/? We would be happy to assist you further with your request.
Best,
Dhruv says
Thanks for the guidance. I was looking for something similar in wordpress as a date calculator but unable to find for a long time. I custome coded a site in php to provide such functionality. However, wordpress provides nice good themes which I definitely try to create a tool.