Rabbinatix
Sign inGet started
Store

Age from birthday

FreeLogic
@rabbinatix/age-from-birthday by Rabbinatixupdated Oct 4, 2026

Whole years between a birthday and today: 1990-05-20 → 36.

Sign in to add

To Date checks both dates first (it never fails, it says valid); Time Between in years counts only birthdays that have passed. Pass today's date as today.

Shows: To Date, Time Between, AND, Branch.

How to use it

Add it to your logic, then add a Call Function step in any logic and pick Age. It belongs to no system, so every system can use it. Or download the TypeScript and call it from your own code.

Inputs
birthday: Text
today: Text
Outputs
age: Whole number (may be empty)
valid: Yes / No
Previewdrag the steps around; scroll to zoom
Function Entry, Input / output. 0 inputs, 3 outputs. step 1 of 8
Age
birthday
today
To Date, Date and time. 1 input, 3 outputs. step 2 of 8
To Date
value
date
timestamp
valid
To Date, Date and time. 1 input, 3 outputs. step 3 of 8
To Date
value
date
timestamp
valid
AND, Operators. 2 inputs, 1 output. step 4 of 8
AND
A
B
result
Branch, Flow control. 2 inputs, 2 outputs. step 5 of 8
Branch
condition
True
False
Time Between, Date and time. 3 inputs, 1 output. step 6 of 8
Time Between
from
to
unit
result
Return, Input / output. 3 inputs, 0 outputs. step 7 of 8
Return
age
valid
Return, Input / output. 3 inputs, 0 outputs. step 8 of 8
Return
age
valid

Arrow keys: next or previous step in flow order. Alt with arrows: nearest step in that direction. Enter: open. Shift F10: more actions.

100%
Examplesrun live against the logic · 3/3 pass
PassedExampleInputOutput
Birthday passed{"birthday":"1990-05-20","today":"2026-10-04"}{"age":36,"valid":true}
Birthday tomorrow{"birthday":"2000-10-05","today":"2026-10-04"}{"age":25,"valid":true}
Not a date{"birthday":"20/05/1990","today":"2026-10-04"}{"age":null,"valid":false}
Try it
Versions
In this package
Age (entry)