Hi Folks,
I'm trying to compare a Date attribute of an object with the Date_Part of a TimeStamp attribute of another object and am a bit baffled. The problem seems to centre around the data types involved. A piece of my code goes like this -
FIND Event WHERE Date_Part(Event.StartTime)>=Enquiry.StartDate AND Date_Part(Event.StartTime)<=Enquiry.EndDate
.... where the Event is an object containing planned events, and Enquiry is an object containing dates to be checked.
The query checks for planned events within a specifed time period identified by the Enquiry object attributes.
However, my query returns nothing at all (even though there are events scheduled). I'm sure it has something to do with the comparison of data types but have tried various functions to no avail.
Can anyone suggest a way to compare TimeStamp with Date attribute types ?