cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
Mart-in
Level III

Calcul age from date of birthday

Hello,

 

I readed "JMP 15 documentation helps" but not found the answer, in addition of multiple searchs on the forum community.

 

I know it's easy : how calculate the age with the date of birthday ?

 

I tried : "DifferenceDate(DateBirthday, "Today", "Year")"

 

Thank you to take one minute for a beginner.

1 ACCEPTED SOLUTION

Accepted Solutions
Jeff_Perkinson
Community Manager Community Manager

Re: Calcul age from date of birthday

You need to use the Today() function.

 

Date Difference( :Birthday, Today(), "Year", "actual" )

2021-02-04_10-24-54.665.png

Notice I've also added the "Actual" alignment argument to Date Difference() to get age as we usually think of it.

-Jeff

View solution in original post

4 REPLIES 4
Craige_Hales
Super User

Re: Calcul age from date of birthday

Was there any message in the Log window?

The JSL scripting index will also help. The column formulas are actually tiny JSL scripts, and you can use any functions from the scripting index.

 

Craige
Mart-in
Level III

Re: Calcul age from date of birthday

Thank you Graige !

 

I didn't use the script because I can't use code to script.

 

I really beginner, but it's good to know.

 

 

Jeff_Perkinson
Community Manager Community Manager

Re: Calcul age from date of birthday

You need to use the Today() function.

 

Date Difference( :Birthday, Today(), "Year", "actual" )

2021-02-04_10-24-54.665.png

Notice I've also added the "Actual" alignment argument to Date Difference() to get age as we usually think of it.

-Jeff
Mart-in
Level III

Re: Calcul age from date of birthday

Perfect. Thank you.

 

I have the beginning but not the end.

 

[Separate question] : When you have finished an analyse (Khi2 for example) ; which interface did you use for the layout like scientific article ?]