Skip Navigation

[Resolved] Date last updated – Today

This thread is resolved. Here is a description of the problem and solution.

Problem:
How to calculate difference between modified date and today.

Solution:
You need to write custom shortcode where you should pass your modified date value and then calculate the number of days between passed modified date value and today.

You can find proposed solution, in this case, with the following reply:
=> https://toolset.com/forums/topic/date-last-updated-today/#post-615193

Relevant Documentation:

This support ticket is created 6 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 6 replies, has 2 voices.

Last updated by randallH-3 6 years, 9 months ago.

Assisted by: Minesh.

Author
Posts
#614020

How can I get the total number of days for the date last update - today?

#614106

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - could you please share more information regarding your issue, which field you want to compare with last updated and where?

#614507

I need to get the date last edited (WordPress) of custom post minus date Today

#614591

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

But I would like to know where you want to display it? Using view or in backend admin?

#615074

Hi, frontend. Using views.

#615193

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok -I got it.

Well - you need to build custom shortcode where you should pass your modified date and then calculate the number of days between passed modified date and today.

Following link may help you:
https://stackoverflow.com/questions/676824/how-to-calculate-the-difference-between-two-dates-using-php

#617262

Thanks