=====Age Action===== I haven't seen any actions out there that are useful for determining the age of something provided the start day, month, and year. I'm using this a temporary holding place while I clean up my code and improve some functionality. This code doesn't quite work yet, but you can see what I'm planning on doing. =====Source===== %%(php;1) htmlspecialchars_ent($vars['byear'])); $bMonth = (int)trim($this->htmlspecialchars_ent($vars['bmonth'])); $bDay = (int)trim($this->htmlspecialchars_ent($vars['bday'])); // Get the Death/End Dates $dYear = (int)trim($this->htmlspecialchars_ent($vars['dyear'])); $dMonth = (int)trim($this->htmlspecialchars_ent($vars['dmonth'])); $dDay = (int)trim($this->htmlspecialchars_ent($vars['dday'])); $day=(empty($day))?'1':$day; list($this_year, $this_month, $this_day) = explode(' ',date('Y n j')); $age = $this_year - $bYear; if ($bMonth>$this_month||($this_month==$bMonth&&$this_day<$bDay)) { $age--; } echo $this->ReturnSafeHTML($age); ?> %%