[Free] Age calculator Extension

Hello koder , this is my age calculator Extension created by Mr_koder
icons8-age-468

Documentation

  1. Calculate Exact Age Block

blocks (8)

  • Description: This block calculates the exact age of a person in years, months, and days based on the given birthday.
  • Input: A string representing the person’s birthday in the format ‘yyyy-MM-dd’.
  • Output: A YailList containing three elements: [years, months, days], where ‘years’ is the age in years, ‘months’ is the remaining months, and ‘days’ is the remaining days."

  1. Calculate Age In Years Block

blocks (4)

  • Description: This block calculates the age of a person in years based on the given birthday.
  • Input: A string representing the person’s birthday in the format “yyyy-MM-dd”
  • Output: An integer representing the person’s age in years.

  1. Calculate Age in Days Block

blocks (5)

  • Description: This block calculates the age of a person in days based on the given birthday.
  • Input: A string representing the person’s birthday in the format “yyyy-MM-dd”
  • Output: An integer representing the person’s age in days.

  1. Calculate Age in Months Block

blocks (6)

  • Description: This block calculates the age of a person in months based on the given birthday.
  • Input: A string representing the person’s birthday in the format “yyyy-MM-dd”
  • Output: An integer representing the person’s age in months.

  1. Is Birthday Today Block

blocks (7)

  • Description: This block checks if today is the person’s birthday based on the given birthday.
  • Input: A string representing the person’s birthday in the format “yyyy-MM-dd”
  • Output: A boolean value, true if today is the person’s birthday, and false otherwise.

Explanation

this extension compares the device’s current date with the provided birthday to calculate the person’s exact age in years, months, and days.

Download

com.age.calculate.mrkoder.aix (7.3 KB)

Thanks .

Mr_koder

5 Likes

Please follow the naming conventions

Taifun

1 Like

OK edited in the extension file
thanks @Taifun

I think, This will return age only in years,

You can add a function to get exact age in years, months and days.

2 Likes

added @The_K_Studio

1 Like