vlibDate

vLIB logo

6.8. getSuffix()

Function Description
  getSuffix(string timestamp)

Returns the suffix for the day of the month, i.e. 03 = rd (in english).

The timestamp parameter is a vlibDate timestamp. For more information on this, please see the IMPORTANT section.

Example

    $suffix = $date->getSuffix('2002-01-01'); // sets $suffix to 'st'