How to Calculate Elapsed Time Between Date and Time Fields in Word Forms
Question details
The user wants to calculate and display the elapsed time between a Start Time and End Time field in a Word form.

- Product
- Microsoft Word 2016
- Device & OS
- not provided
- Scenario
- Creating a form with legacy text form fields to track time duration.
- Observed behavior
- Needs to output the calculated elapsed time in seconds or minutes into a specific field (e.g., txt_elapsed_time).
Ensure that the Developer tab is enabled in your Word ribbon and that your document contains the correct legacy text form fields for your start and end times.
Calculate Elapsed Time Using the DateCalc Tutorial
Leverage Macropod's DateCalc tutorial to set up field codes and macros for complex date and time calculations in Word forms.
Microsoft Word does not have a native, simple formula function to subtract times or dates directly. To accomplish this, the most reliable method is to use established field code structures or macros provided in Macropod's DateCalc tutorial.
Navigate to Graham Mayor's third-party downloads page and download the 'DateCalc.zip' file.
Unzip the downloaded file and open the Macropod DateCalc tutorial document.
In your Word document, go to the Developer tab, click 'Legacy Tools' in the Controls group, and insert Text Form Fields for your start time, end time, and elapsed time.
Follow the tutorial's specific instructions to copy and apply the necessary field codes to your 'txt_elapsed_time' field to calculate and display the result in minutes or seconds.

Manage Your Documents with WPS Office
If configuring legacy form fields and macros in Microsoft Word seems too complex, consider switching to WPS Office. It provides a free, lightweight, and highly compatible alternative for everyday document editing and formatting tasks.
- 1. Download WPS Office: Visit the official website and download the free WPS Office suite for your operating system.
- 2. Open Your Document: Launch WPS Writer and open your existing Microsoft Word form document.
- 3. Edit Seamlessly: Enjoy full compatibility and easily manage your text and document structures without altering the original formatting.

Frequently Asked Questions
How do I format a legacy text form field for time in Word?
Double-click the legacy text form field to open its Options dialog. Change the 'Type' to 'Date', and in the 'Date format' dropdown, type a time format like 'HH:mm' or 'h:mm am/pm'.
Can standard Word formulas calculate the difference between times?
No, standard Word formula fields (like =SUM) cannot natively calculate time elapsed between two dates or times. This limitation is why external tutorials like DateCalc or VBA macros are required.
Why doesn't my calculated elapsed time field update when I type?
For legacy form fields to calculate automatically, you must check the 'Calculate on exit' box in the properties of your input fields (Start Time and End Time), and the document must be protected for filling in forms.




