vlibDate

vLIB logo

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