Community
Participate
Working Groups
Sometime following gives -60 when "from date" is greater than "to date" and some time it gives 43190. (when there is a minut diffrence) dateFrom = params["Date From"].value; dateTo = params["Date To"].value; BirtDateTime.diffSecond(dateFrom,dateTo)
Could you please give me the detail value of your parameter which can reproduce this issue? I tried with 2.5.2 release with below parameter value and did not reproduce the issue: dateFrom:2012-5-13 13:31:00 dateTo:2011-5-13 13:30:00
1) From Date and To Date of Type Date Time 2) Format for these are custom (MM/dd/yyyy hh:mm) Thanks, Vj~
(In reply to comment #2) > 1) From Date and To Date of Type Date Time > 2) Format for these are custom (MM/dd/yyyy hh:mm) > > Thanks, > Vj~ I was using the datetime type and custom format(MM/dd/yyyy hh:mm). Please see my attached report design.
Created attachment 195558 [details] test report
Thanks You Sir, That helps a lot , now only quetion i have is why does it [ BirtDateTime.diffSecond(dateFrom2,dateTo2)] shows -31622400 even though value of to and from date is same.
(In reply to comment #5) > Thanks You Sir, > > That helps a lot , now only quetion i have is why does it [ > BirtDateTime.diffSecond(dateFrom2,dateTo2)] shows -31622400 > even though value of to and from date is same. It seems that this is a bug in the 2.5.2 release. But I can not reproduce this issue in the latest 2.6.2 release build. Please have a try with the latest 2.6.2 build.
Set as fixed based on comment #6.