G
11/24/2023, 3:40 PMStephanie Hughes
11/24/2023, 3:49 PMCASE WHEN TO_CHAR({custbody_time}, 'HH24:MI:SS') <= TO_CHAR ({now}, 'HH24:MI:SS') THEN 1 ELSE 0 END
And then you could separately do custbody_time on or before yesterday for the date part. (I've only split out time separately for hourly comparisons and had the dates hard-coded, so never tried to do them both in one.)G
11/24/2023, 8:22 PMStephanie Hughes
11/24/2023, 9:41 PM