If you use JDBC API you should be having no problem w.r.t Dates
Code:
String sql =
"select test.pk as pk, test.availability as availabi3_88_, test.created_time as created5_88_
from test_table test
where test.pk>?
and test.created_time >= ?
and test.created_time <= ?
order by test.created_time DESC ";
Connection c1 = session.connection();
PreparedStatement ps = c1.prepareStatement( sql );
ps.setInt( 0, 0 );
ps.setDate( 1, getFormattedDate( '2006/07/10 00:00:00' ) );
ps.setDate( 2, getFormattedDate( '2006/07/10 23:59:59' ) );
Where getFormattedDate is an utility function you can implement to get the Date in the required format.
Iff the above code works for your case then you can substitute respective portions with hibernate API also.