[Qgis-user] Calculate age in years with expressionbuilder

Reginald Reginald.Carlier at ingelmunster.be
Mon Dec 18 06:26:12 PST 2017


hello,

I am calculating the age of persons with the expression builder.
My formulae looks like this:
year(age( to_date(now()) , "GDate" ))
The result looks alright for people who are younger than 68 years.
People who are born in 1949 or before get negative ages and the age goes
from -68 to -31 (for someone born in 1913)
What is wrong with my formulae? 

Regards,






--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html



More information about the Qgis-user mailing list