Dynamic Field: Current Date - Adding Days

Is there an equivalent to strtotime when using the Current Date dynamic content? Looking to display a date X number of days into the future based on the current date. I used to do this by adding code to functions.php, but if it’s possible using the new Current Date feature that would be great.

Hi @mgalindo,

The Current Date option is to show the current date on your page through the Dynamic Content. But it seems that you are trying to show the day difference between the current date and a specific date, regretfully, there is no such option to do that.
If that is not the case and you are trying to point out something else, please provide any screenshot marked with the issue or any video that helps us to recognize the problem.

Thanks

But it seems that you are trying to show the day difference between the current date and a specific date, regretfully

No, that’s not what I’m trying to do, as I stated in my original post “Looking to display a date X number of days into the future”. If today’s date is January 25th, I want it to display February 1st.

I gave an example of this when I asked if there was an equivalent to strtotime that allows for modifying the date displayed by using “+7 days” (as an example). Other dynamic functions already have modifiers (e.g. post=“next”) so I thought that the date may allow for these as well.

Hi @mgalindo,

Thanks for clarifying it, but regretfully that is also not possible through the Dynamic Content, Current Date.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.