Thank you two, Lucian and Chrish. :) I run from JasperServer web interface. I think maybe I write/think too much....just beacuse I try too many ways. Let me get back to my beginning. I create 2 input control in JasperSerevr, with DataType as Date. In iReport, I add 4 parameters, 2($P{D1} and $P{D2}) as java.util.Date and they are for input control. The other 2($P{S1} and $P{S2}) are java.lang.String, I will use them for Oracle SQL.$P{D1}/$P{D2} with DefaultValue as new java.util.Date(); $P{S1}/$P{S2} with DefaultValue as new SimpleDateFormat("dd/MM/yyyy")).format($P{DATE_FROM}) Then, I create a simple Query in JasperServer, like Code: SELECT col_1 FROM myTable WHERE myDate BETWEEN to_date($P!{S1}, 'DD/MM/YYYY') and to_date($P!{S2}, 'DD/MM/YYYY') That's what I done at the beginning. But it does not work because I always get empty report. If I hard-code in that Query(e.g. specify the date), I can get the correct report. So I am pretty sure that my SQL is fine. I run from JasperServer. I use JBoss and Oracle. Many thanks for your time.:blush: Post edited by: ali88, at: 2007/08/03 07:05