DATE_PART

Returns the date part of the given timestamp

Timestamp

IF DATE_PART (Account.OpeningDateTime) = 07/04/2004 THEN ...