About isDaylightTime()

Hi All,

I want to place an indicator on a Vision page to indicate if Daylight Saving Time is on.

In the Script Console, system.date.isDaylightTime() works fine.

I have Boolean Tag called "DST" with value source as expression. For the expression i have system.date.isDaylightTime(now()). This doesn't go down well:

image

I have tried many variety of the expression. Doesn't work. What am I doing wrong here?

Have a wonderful break, All. Thanks.

system.date.isDaylightTime(now()) is not an expression. It is a script.

Expression Language has dateIsDaylight | Ignition User Manual so try:
dateIsDaylight(now())

4 Likes

Thanks Transistor. Works perfectly. Understood why I was getting the error.