Im using Wordpress as my headless, and currently have a custom post named promotions, these have a custom field for the finish date which I can retreive in the Promotion page with no issue.
RIght now in order to show a banner on the page that shows the current promotion is expired we use a taxonomy so they select that the current promo is expired, since I can compare on the expression editor strings I can do this,
However I tried to improve the concept by using the promotion finish date... It should be a simple conditional:
object.finishdate > today ? true : false
However... I need to use at least the javscript Date object but I noticed the expresison editor doesnt allow me to put it inline... also noticed that the variables we can create can be string, number... but no date
One of our clients requires this directory and file to be present and its quite a headache in the current server, i wonder if its possible to include it in the website devewloped here