vlibDate
Table of Contents
| Up:
6. vlibDate
| Previous:
6.23. quarterOfYear()
| Next:
6.25. diffInDays()
6.24. getLongYear()
Function Description
getLongYear (string year)
Returns the year in YYYY format for the given year in YY format. 0-49 is considered 21st century, 50-99 is 20th century.
Example
echo $date->getLongYear('98'); // will echo 1998