Determine the weekday for January 13, 1998.
| <?php $jd=gregoriantojd(1,13,1998); echo jddayofweek($jd,1); ?> |
The jddayofweek() function provides the day of the week.
| jddayofweek(jd,mode); |
|
Parameter |
Description |
|
jd |
Required. A Julian Day Number. |
|
mode |
Optional. Determines the format for returning the weekday. Possible values are:
|
|
Return Value: |
Returns the Gregorian weekday as either a string or integer, depending on the mode parameter. |
|
PHP Version: |
4+ |