I have a datetime property which works fine, but now I want to get the timestamp and not have a datetime object returned - I want to compare the datetime field in a query. What do I have to do to get the timestamp (as stored in the database) and not a datetime object/array? Stephen.