From Ravenchat Wiki
Jump to: navigation, search

Note: This template uses the ISO-8601 format for dates which is YMD (year month day). For simplicity and to avoid confusion, this documentation will use this format as well.

This is the template for displaying your age on your user page, or perhaps something that is appropriate for displaying how many years an event has been occurring or going on for. To display your age, here is an example for someone born on 1969 December 31:


To display how many years have occurred between two events, one on 1969 December 31 and the other on 1993 January 2, you can do this:


Note that this template contains no error checking. It is up to you to ensure that dates are entered correctly. Always use YMD, which is easy to remember because it goes from the most significant piece of information (the year) to the least significant (the day).