Looks like you have 2 different fields; let's say they are named from_date and to_date. Here's the MySQL syntax (DATETIME format may vary from DBMS to DBMS):
SELECT * FROM table_name
WHERE from_date >= '2001-05-01 12:07:33'
AND to_date <= '2001-05-07 07:43:23'
If you are using one datetime field for this comparison, it's even easier:
SELECT * FROM table_name
WHERE date_field BETWEEN '2001-05-01 12:07:33' AND '2001-05-07 07:43:23'
If you are using MSSQL, I believe the syntax for DATETIME is dependent upon your locale settings. In the USA it is:
'05/01/2001 12:07:33 PM'
but since MS is pretty forgiving you can put in any recognized date format (i.e. '1 May 2001 12:07:33'). Also, MSSQL and many DBMS's allow you to specify milliseconds, in which case the format is:
'05/01/2001 12:07:33.045 PM'
For other DBMS's check your manual under DATETIME to determine correct format.
Hope this helps.