Forum Discussion
Time Comparisons with NOW()
Anonymous . because now is date and time. time is only time
Try like
NOW() < today()+ Time(3,30,0)
NOW() >today()+ Time(3,30,0)
amitchandak This works with the first condition, but it is still returning Blank() when I try:
NOW() > Today() + Time(3,30,0)
- Tahreem246 years agoSuper User
Anonymous ,
Try like a below:
Column1 = IF(NOW()>TODAY()+Time(3,30,0),"Yes","No")Column2 = IF(NOW()<TODAY()+Time(3,30,0),"Yes","No") - amitchandak6 years agoSuper User
Anonymous , hope you using that in a fi or filter
try like
if(NOW() >( Today() + Time(3,30,0)) ,1,0)
- Anonymous6 years agoNot applicable
amitchandak I am using it as a report page filter. I actually made a mistake in my post, as It is actually a calculated column in my date table rather than a measure.
Regardless,if(NOW() >( Today() + Time(3,30,0)) ,1,0) works and returns 1.
Any idea on why it's returning blank when I switch the true condition to TRUE() and the false condition to FALSE()?
- amitchandak6 years agoSuper User
Anonymous , I did not get that
I tried
Measure =NOW() > Today() + Time(3,30,0) it retured trueI triedMeasure = if(NOW() > Today() + Time(3,30,0) ,True(),false())it retured true