Calculating Age from DOB

Stimulsoft Reports.NET discussion
Post Reply
roday
Posts: 2
Joined: Mon Nov 18, 2013 9:18 pm

Calculating Age from DOB

Post by roday »

I am trying to create a calculated column that will give me age by finding the difference between today's date and a date of birth. The difference is outputted in a timespan (ie. "6570.00:00:00") I need to convert this to years but everything that I try breaks the report. Any advice is greatly appreciated. Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Calculating Age from DOB

Post by HighAley »

Hello.

We are using standard .Net Framework TimeSpan type.
Here is a description of custom format string.

Thank you.
Post Reply