Hello,
give me how I can calculate age, formula with baserow
1 Like
I used this formula, but I encountered this error.
date_diff(‘yy’,field(‘Date de Naissance’),today()
Error with formula: argument number 2 given to operator - was of type text but the only usable type for this argument is number.
Hi @Farah, is the ‘Date de Naissance’ field set as a Number field type?
The type of “date de naissance” is date.
I apologize—we need a Date field type here not a Number field type, and in the example above, we also have a date field type for the Date of birth field. So, the following formula should work in this case.
Try this: date_diff(‘yy’,field(‘Date de Naissance’),today())