Title: Calculation &#8211; Datedif
Last modified: July 17, 2020

---

# Calculation – Datedif

 *  Resolved [Joe Dunn](https://wordpress.org/support/users/joe-dunn/)
 * (@joe-dunn)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/calculation-datedif/)
 * Hello,
 * I recently found that TablePress can do calculations. However, I can’t seem to
   get it to calculate the difference between a date and today’s date showing the
   result in Years, Months and Days.
 * I tried this simple formula just to get the Years:
 * =datedif(B5,today(),”Y”)
 * I get this error message: !ERROR! B5 does not contain a number or expression
 * B5 is just a date. 1/1/1980.
 * Thanks for any help!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/calculation-datedif/#post-13136909)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Unfortunately, I’ll have to disappoint you here. Such date calculations are indeed
   not possible. TablePress is only capable of calculating basic math functions 
   at this time, see [https://tablepress.org/tablepress-features-formulas/](https://tablepress.org/tablepress-features-formulas/)
 * Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘Calculation – Datedif’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

## Tags

 * [calculation](https://wordpress.org/support/topic-tag/calculation/)

 * 1 reply
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/calculation-datedif/#post-13136909)
 * Status: resolved