Question
How to compare Time
Hi All,
I have to check whether the current time(irrespective of any user time zone) is between 7pm EST to 9am EST.
So we tried to convert the current time to EST first and then to compare it with "7:00 PM" & "9:00 AM" EST (by creating text constant).
We just tested with below code to check whether comparison works fine by changing the constant value, but it fails
totime(
gmt(
local(now(), "EST" )
)
) > totime(cons!xyz)
where cons!xyz = "7:00 PM" (a text constant)
So please help me how to make this work. Thanks in advance.
