Is there a way to check the current date-time inside of Plasmic? I want to check if the current date-time is greater than one saved our cms model, to see if an item is “past the sell by date.” Going to use dynamic value on a visibility setting to make it poof if old.
Figured it out! In case anyone else encounters this, here was my solution:
(new Date()) <= (new Date($ctx.plasmicCmsFoodItem.data.foodExpireDate))
Essentially had to create new javascript Date objects and compare them.