Hi, I have been reading all the answers on calculating date difference but I could not get it yet. Can any one tell me how can I get the days from the difference of two timestamps fields in ireport. I would like to show my sql query, 1. Nvl((Select Max(c.finish_date) from code_det cd, os_historystep c where cd.module_code = 'RPT' ),'') appReciveddt,-- This is first date field. 2. Nvl((Select Max(c.start_date) from code_det cd, os_historystep c where cd.module_code = 'RPT' ) ),'') creditristdt,--This is second date field. From table..... I need to get the days=creditristdt - appRecivedd. I want the "days" as a field in sql .I do not want to store the days in variable. Kindly tell me how to acheive this? Ruba