vlibDate

vLIB logo

6.20. dayOfWeek()

Function Description
  dayOfWeek (string timestamp)

Returns day of week for the given timestamp: 0=Sunday ... 6=Saturday

For more information on a vlibDate timestamp, please see the IMPORTANT section.

Example

   echo $date->dayOfWeek('2002-04-29'); // echo's '1' , Monday