Skip Navigation

[Resolved] Legacy conditionnal comparison date

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.

This topic contains 1 voice and has 0 replies.

>
Author
Posts
#2797523

Hi,

I have a 'contract-end' custom field which is a DATE field.

In a legacy view I need to compare this date with TODAY.

[wpv-conditional if="( '[types field='contract-end' output='raw'][/types]' gte 'TODAY()' )"]
<div>OVERDUE THIS YEAR</div [/wpv-conditional]

So the comparison should be greater than today but earlier than today+12 months.

How can I write this condition ?

Thanks for your help.