I'm having trouble with the following in saved search criteria: CASE WHEN {usernotes.notedate} >= {today}-7 THEN 1 ELSE 0 END. It works, but it's taking time into account, and it needs to be based on the day only. What do i need to do to it?
a
Ankur Sanghi
02/25/2019, 2:34 PM
use trunc to truncate the field to only date then compare
g
Gregory Jones
02/25/2019, 2:38 PM
@Ankur Sanghi Thanks! Do I have to specify a format like 'mm/dd/yyyy'?