Created
January 24, 2020 00:11
-
-
Save felixhaeberle/304632124bf7e1a4b38c817a1c50501a to your computer and use it in GitHub Desktop.
Twig calculate age based on birthday date
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% set age = date().diff(date(item.birthday)).y %} |
Thanks that was helpful.
Thank you :)
nice! Thanks.
Thank you very much! 🚀
👍
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very useful. Thanks