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'm trying to set up a calculated column that will give me "Age" using the difference between the dates "Today" and a date of birth. When I calculate this value, the result is in a timespan (i.e 6570.00:00:00). I'm trying to get this to convert to years but haven't had any luck. Everything I try seems to break the report. Any advice is greatly appreciated!
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