Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Calculate Age from evar which contains month and year.

1982luca
Level 8
Level 8

Hello everyone,

 

I have an evar which stores 10/1982 as birth date. Is it possible to create metric which gives the current age?

Thanks

 

1 Accepted Solution
yuhuisg
Correct answer by
Community Advisor
Community Advisor

eVars store their values as text. So unfortunately, there's no way to convert that text string into a date that AA can calculate on.

Even if you classify the eVar's date string to "Year", that Year would still be a string that AA cannot calculate on.

View solution in original post

4 Replies
yuhuisg
Correct answer by
Community Advisor
Community Advisor

eVars store their values as text. So unfortunately, there's no way to convert that text string into a date that AA can calculate on.

Even if you classify the eVar's date string to "Year", that Year would still be a string that AA cannot calculate on.

View solution in original post

1982luca
Level 8
Level 8
What if If I store month as number and year as number?
yuhuisg
Community Advisor
Community Advisor

@1982luca how can you store a number in an eVar when AA doesn't allow numbers to be stored?

Screenshot 2021-01-12 at 4.04.18 PM.png

jantzen_belliston-Adobe
Level 10
Level 10
Do any of the answers below answer your initial question? If so, can you select one of them as the correct answer? If none of the answers already provided answer your question, can you provide additional information to better help the community solve your question?