Set the value of an attribute based on the timings given by the user

0
Hi All,   I am working on an assignment where I should set the value of an attribute based on the comparision between current time and the timings given by the user. For example, if the current time<time1, then the attribute should be set to false. I tried using calculated attribute and also used functions parseDateTime, hoursBetween  functions.  Expressions used are as below:  parseDateTime([%CurrentDateTime%])<time1, set the attribute to false hoursBetween(time1,[%CurrentDateTime%])>0, set the attribute to false Here, time1 is the time set by the user   I didn’t get any results from these steps. Please let me know if there is any other method to resolve this  
asked
1 answers
2

You can compare the two values, like this:

$time1 <= [%CurrentDateTime%]

answered