$ 0 0 you can simply create no. of days as an integer datatype variable and add code like noofdays := Date2 - Date1;