vlibDate
Table of Contents
| Up:
6. vlibDate
| Previous:
6.19. isLeapYear()
| Next:
6.21. weekOfYear()
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