Time format

Stimulsoft Reports.NET discussion
Post Reply
idiotperson
Posts: 2
Joined: Mon Aug 17, 2015 11:47 am

Time format

Post by idiotperson »

Hi .... What can i do if i want to get the sum answer by time format instead of general number....

For example, 700 min is the time , i don't want it to show as 11.67 and want it to be 11 hours and 40 mins
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Time format

Post by HighAley »

Hello.

You could set the Text Format to the necessary value or use ToString("hh:mm") method.
Could you specify where you have the time and what is the format of the source?

Thank you.
idiotperson
Posts: 2
Joined: Mon Aug 17, 2015 11:47 am

Re: Time format

Post by idiotperson »

{Sum(GroupHeader3,MasterData.DiffMinutes)}
the format of source
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Time format

Post by HighAley »

Hello.

Could you specify what is the type of the MasterData.DiffMinutes column?
If the column has right type, you could use next expression:

Code: Select all

{Sum(GroupHeader3,MasterData.DiffMinutes).ToString("hh:mm")}
Thank you.
Post Reply