This wiki has been automatically closed because there have been no edits or log actions made within the last 60 days. If you are a user (who is not the bureaucrat) that wishes for this wiki to be reopened, please request that at Requests for reopening wikis. If this wiki is not reopened within 6 months it may be deleted. Note: If you are a bureaucrat on this wiki, you can go to Special:ManageWiki and uncheck the "Closed" box to reopen it.


From the Pokémon Wiki, a Pokémon encyclopedia
Jump to navigationJump to search

This template returns the number of full years between two specified dates. If the second parameter is not included, it will return the number of full years between a specified date and today's date.

{{age|date1|date2}} or
{{age|July 7, 1989|July 14, 2003}} returns "14"
{{age|July 7, 1989}} returns "33"
The full range of possible date formats is based on php's strtotime() function and is explained here, but for simplicity it's usually best to just stick to the format above.
{{age|July 7 1989}} returns "33"
{{age|7 July 1989}} returns "33"
{{age|1989-7-23}} returns "33"
This template does not check for incorrect input.