4,595
edits
No edit summary |
No edit summary |
||
Line 54: | Line 54: | ||
--Converts the first given date to a long date | --Converts the first given date to a long date | ||
convertedBirthDate = convertDate(birthDate) | |||
convertedCurrentDate = convertDate(currentDate) | |||
--Splits the first date given | --Splits the first date given | ||
Line 89: | Line 90: | ||
--Takes the first date and adds the age to the end | --Takes the first date and adds the age to the end | ||
if status == "alive" then | if status == "alive" then | ||
dateAge = | dateAge = convertedBirthDate.." (age "..age..")" | ||
elseif status == "dead" then | elseif status == "dead" then | ||
dateAge = | dateAge = convertedCurrentDate.." (aged "..age..")" | ||
else | else | ||
error("Invalid Status") | error("Invalid Status") |