vlibDate
Table of Contents
| Up:
6. vlibDate
| Previous:
6.7. now()
| Next:
6.9. mkTimestamp()
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'