Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Get age from 198004

Hi

How can I get the age in year when I have a field "born" which are as 198004 or 200512?

/thanks!

1 Solution

Accepted Solutions
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Sorry you have to use like this

     age(Today(),Date(Date#(Field,'YYYYMM')))

     in your expression if the date is 201112 then it gives the age as 1.is it right?

Celambarasan

View solution in original post

4 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

Format this date using Date# like

     age(Date(Date#(Field,'YYYYMM')),Today())

Celambarasan

Not applicable
Author

Hi. I´d got a negativ value from that, correct age but a - (minus) before.

Tried to used this, seems to work. 

Year(today()) - left(Field, 4) AS Age

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Sorry you have to use like this

     age(Today(),Date(Date#(Field,'YYYYMM')))

     in your expression if the date is 201112 then it gives the age as 1.is it right?

Celambarasan

Not applicable
Author

Hi,

create a new field in the name of age in the backend with following expression

AGE(Today(),date(date#([Date Of Birth]),'DD-MM-YYYY')) AS AGE

hope it helps.