hi
check out the query
SELECT * FROM TableName where datetime between
to_date('01-oct-2012,'mm/dd/yyyy') and
to_date('30-oct-2012','mm/dd/yyy')
order by datetime DESC;
or
select column1, column2 from tablename where
convert(char(20),columnname,105) between '21-10-2012' and '19-10-2012';