I am using a SQL query
select datediff(hour, Convert(DateTime, Convert(DateTime, Convert(nVarChar, cast(complaintdate as datetime), 101)) + \'\' +
I agree with Jon Skeet's comment, but to answer your question, surely you only need to add a where clause: "where [Open Hours] > 500"?