PHP JDDayOfWeek() Function
Example
Return the day of the week for October 15, 1980:
<?php $jd=gregoriantojd(10,15,1980); echo jddayofweek($jd,1); ?>
Definition and Usage
The jddayofweek() function returns the day of the week for the date.
Syntax
jddayofweek(jd,mode);
Parameter | Description |
---|---|
jd | Required. Number (Julian day count). |
mode |
Optional. Defines how to return the day of the week (number or string). It can be one of the following values:
|
Technical Details
Return value: | As a string or integer (depending mode Parameter)Returns the day of the week in the Gregorian calendar. |
---|---|
PHP Version: | 4+ |