Hi
I need to set an initial value of a field based on my Timestamp being before 10am. Not sure of the syntax. Could someone help?
The inital value of the timestamp field is NOW() format. e.g. 16/07/2019 14:24:34
Thank you.
Solved! Go to Solution.
Provided I have understood you correctly:
IF(HOUR(TIMENOW() - "00:00:00")=10,"if TRUE This Value","if FALSE This Value")
Provided you want to make the comparison as per your [Timestamp] column, use this expression:
IF(HOUR(TIME([Timestamp]) - "00:00:00")=10,"if TRUE This Value","if FALSE This Value")
Provided I have understood you correctly:
IF(HOUR(TIMENOW() - "00:00:00")=10,"if TRUE This Value","if FALSE This Value")
Provided you want to make the comparison as per your [Timestamp] column, use this expression:
IF(HOUR(TIME([Timestamp]) - "00:00:00")=10,"if TRUE This Value","if FALSE This Value")
hi @LeventK I am getting a Parameter 1 of function HOUR is of the wrong type error
@MauriceWhelan I have edited the expression in my post. Please check that one.
Worked perfectly, thank you @LeventK.
User | Count |
---|---|
43 | |
30 | |
26 | |
14 | |
14 |