vlibDate

vLIB logo

6.6. getWeekdayAbbrname()

Function Description
  getWeekdayAbbrname (string timestamp [, int length=3])

Returns the abbreviated name of the weekday for the given timestamp.

The timestamp parameter is a vlibDate timestamp. For more information on this, please see the IMPORTANT section.
The length parameter is the length of the sub string (defaults to 3).

Example

    $date->getWeekdayAbbrname('2002-05-15', 4); // returns 'Mond'