problem sum between column

Stimulsoft Reports.NET discussion
Post Reply
squidy
Posts: 2
Joined: Fri Feb 03, 2012 5:10 am

problem sum between column

Post by squidy »

i face a problem when i doing sum between column


for example:
column A : 2012-02-02 17:00:00.000 (DateTime)

column B : 45 (decimal) <--- minutes

i had try many time to add them. but it fail..
the answer i want is 17:45..

anyone can help me???
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

problem sum between column

Post by HighAley »

Hello.
squidy wrote:i face a problem when i doing sum between column


for example:
column A : 2012-02-02 17:00:00.000 (DateTime)

column B : 45 (decimal) <--- minutes

i had try many time to add them. but it fail..
the answer i want is 17:45..

anyone can help me???
You should use code like next:

Code: Select all

{yourDateTimeField.AddMinutes(yourMinutesFieldTypeDouble)}
Thank you.
squidy
Posts: 2
Joined: Fri Feb 03, 2012 5:10 am

problem sum between column

Post by squidy »

Aleksey wrote:Hello.
squidy wrote:i face a problem when i doing sum between column


for example:
column A : 2012-02-02 17:00:00.000 (DateTime)

column B : 45 (decimal) <--- minutes

i had try many time to add them. but it fail..
the answer i want is 17:45..

anyone can help me???
You should use code like next:

Code: Select all

{yourDateTimeField.AddMinutes(yourMinutesFieldTypeDouble)}
Thank you.


oh~~ thank you very much~~ i solve it!!
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

problem sum between column

Post by Andrew »

Great!

Have a nice day!
Thank you.
Post Reply