var t2 = new Date(fields.orderTime.value);
var stmt = "select * from orders where order_time = "
+ services.database.makeJDBCTimeStringFromField(fields.orderTime);
services.database.executeSelectStatement("SAMPLES", stmt, function (columnData) {..});
Example: