Skip to content

How To Calculate Date Range Between Two date metafield? #8

@mangsinaga

Description

@mangsinaga

I didn't find a way. I created two meta fields open_date and close_date (date field with timestamp save) for an event registration created with jetengine cpt. I want to show a number like x days left / ends in x days before registration closes based on a comparison of the number of days of the two meta fields above. Can someone help me? And how does the "ending soon" text/badge appear when there is only 1 day left before the close_date?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions