vlibDate

vLIB logo

6.2. formatDate()

Function Description
 formatDate (string timestamp, string format)

Formats the date like strftime(). Returns a string in the specifies format for the given timestamp.

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

Example

   $date->formatDate('2002-02-15', '%A %e%s of %B, %Y');