Generating Age in Years and months from date of birth

Hi Yaw and Team, I am creating a survey with variables: Date of Birth and
Age. (Age should be displayed in Years and months) Is it possible to
generate age in years and months from the date of birth entered. Any
assistance from team members would be highly appreciated.

Example:
.....

Q3. Enter date of birth (dd/mm/yyyy): //_______
.
....

Q5. Current Age :Years________ Months___________
....
....

Thanks

Collins

good question, been trying to do that too

··· On Wednesday, May 8, 2013 6:51:15 AM UTC+2, Collins McAdoyo wrote: > > Hi Yaw and Team, I am creating a survey with variables: Date of Birth and > Age. (Age should be displayed in Years and months) Is it possible to > generate age in years and months from the date of birth entered. Any > assistance from team members would be highly appreciated. > > Example: > ..... > > Q3. Enter date of birth (dd/mm/yyyy): _______/_________/_________ > . > .... > > Q5. Current Age :Years________ Months___________ > .... > .... > > Thanks > > Collins >
1 Like

Did you try to search?
https://groups.google.com/d/msg/opendatakit/tZDwQQpN6KU/q5JGcNwUCI4J

··· On Wednesday, May 8, 2013, Collins McAdoyo wrote:

Hi Yaw and Team, I am creating a survey with variables: Date of Birth and
Age. (Age should be displayed in Years and months) Is it possible to
generate age in years and months from the date of birth entered. Any
assistance from team members would be highly appreciated.

Example:
.....

Q3. Enter date of birth (dd/mm/yyyy): //_______
.
....

Q5. Current Age :Years________ Months___________
....
....

Thanks

Collins

--

Post: opendatakit@googlegroups.com <javascript:_e({}, 'cvml',
'opendatakit@googlegroups.com');>
Unsubscribe: opendatakit+unsubscribe@googlegroups.com <javascript:_e({},
'cvml', 'opendatakit%2Bunsubscribe@googlegroups.com');>
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com <javascript:_e({},
'cvml', 'opendatakit%2Bunsubscribe@googlegroups.com');>.
For more options, visit https://groups.google.com/groups/opt_out.

Thanks Nik, let me try it.

··· On Wed, May 8, 2013 at 3:56 PM, ゴー・ニコライ wrote:

Did you try to search?
https://groups.google.com/d/msg/opendatakit/tZDwQQpN6KU/q5JGcNwUCI4J

On Wednesday, May 8, 2013, Collins McAdoyo wrote:

Hi Yaw and Team, I am creating a survey with variables: Date of Birth and
Age. (Age should be displayed in Years and months) Is it possible to
generate age in years and months from the date of birth entered. Any
assistance from team members would be highly appreciated.

Example:
.....

Q3. Enter date of birth (dd/mm/yyyy): //_______
.
....

Q5. Current Age :Years________ Months___________
....
....

Thanks

Collins

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Buenos días.

Quisiera una colaboración, quiero mostrar la edad calculada en años/meses/días, pero no he encontrado nada en el foro. Quise entrar en el link del grupo de google pero al parecer este no existe o no sé cómo puedo ingresar a este. Ya que al presionar el link que dejaron no me deja ingresar por no tener permisos.
Gracias.

1 Like

Buenos dias.

Para calcular la edad tienes que hacer algo como.. int((${hoy} - ${fecha_nacimiento})/365)
Para calcular los meses, sera...int((${hoy} - ${fecha_nacimiento})/12)

Noel

Muchas gracias, ya lo había hecho. Pero de todos modos muy amable por tu respuesta.