Effective date range

Trying to setup an effective on and effective until date range that would set a tag to 1 if the current date is within range.

Something along these lines (except functional…):
IF Now > {Root Container.Eff Date.date} AND < {Root Container.Eff Until.date}
system.tag.writeToTag(“tag”, 1)

Thank you for your assistance

Use the following Expression:

timeBetween(now(),{Root Container.Eff Date.date},{Root Container.Eff Until.date})

Should return TRUE if it’s between the dates or FALSE if not.

Obviously you could put that directly into some binding or alternatively create an expression tag if you need it in a tag.