How to convert timespan to exact numeric value

Stimulsoft Reports.NET discussion
Post Reply
ngaheer
Posts: 44
Joined: Sat Jul 22, 2006 1:12 am
Location: San Jose

How to convert timespan to exact numeric value

Post by ngaheer »

Hi,

I use DateDiff function in my report. I set this fuction like this {Format("{0:N2}", DateDiff(Today,CmfActions.cmfaDate))}.
It returns me result as "23:00:00" but i want only the exact difference like onle "23". so can you guide me how can i get the accurate result.

Thanks
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

How to convert timespan to exact numeric value

Post by Edward »

Hello.

Please modify an expression as follows:

Code: Select all

{DateDiff(Today,CmfActions.cmfaDate).Days}.
Thank you.
Post Reply