T
|
thesofa 1/4/2007 |
Hi |
L
|
larsonsc author 1/5/2007 |
I've been able to figure the age in years no problem. So far the major issue seems to be determinign the months as well. |
T
|
thesofa 1/5/2007 |
I've been able to figure the age in years no problem. So far the major issue seems to be determinign the months as well. For example, I can get an age field to calculate to 5 years, but not 5 years 3 months. I'll review what you linked as well as do some more searching as I just can't possibly imagine that I am the only person who has ever needed to get years and months in a calculated age field. If I figure something out, I'll be sure to share. Thanks for the links thesofa!
|
V
|
vincentwansink 3/25/2009 |
I've been able to figure the age in years no problem. So far the major issue seems to be determinign the months as well. For example, I can get an age field to calculate to 5 years, but not 5 years 3 months. I'll review what you linked as well as do some more searching as I just can't possibly imagine that I am the only person who has ever needed to get years and months in a calculated age field. If I figure something out, I'll be sure to share. Thanks for the links thesofa!
|
V
|
vincentwansink 3/25/2009 |
Here's what I came up with. It's very simple and easy to read. I know some people would prefer to optimize this into less lines of code but I prefer to have my code easy to read, like so. function getAge($birthdate) { |