This example illustrates how to filter results using a comparison. The query below returns all users who have not logged in since June 10, 1999 at 8:00 am. Notice how the literal timestamp value is expressed. It is contained within braces which serve as escape sequence delimiters. The ts indicates the value is a timestamp. The actual string representing the timestamp is contained within the single quotes.
SELECT CN, “Last Login Time” FROM UserNDS
WHERE “Last Login Time” < {ts ’1999-06-10 08:00:00.00’}