Module:Date Stuff: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 108: Line 108:
   elseif birthDate[4] == "month-day-year" or secondDate[4] == "month-day-year" then
   elseif birthDate[4] == "month-day-year" or secondDate[4] == "month-day-year" then
     if birthDate[2] < secondDate[2] then
     if birthDate[2] < secondDate[2] then
       age = math.floor(secondDate[3] - birthDate[3])
       age = math.floor(secondDate[3] - birthDate[3] - 1)
     elseif birthDate[2] >= secondDate[2] then
     elseif birthDate[2] >= secondDate[2] then
       if birthDate[1] <= secondDate[1] then
       if birthDate[1] <= secondDate[1] then