Example
Return the weekday of 13th January, 1998:
<?php
$jd=gregoriantojd(1,13,1998);
echo jddayofweek($jd,1);
?>
Run example »
Definition and Usage
The jddayofweek() function returns the day of the week.
Syntax
jddayofweek(jd,mode);
Parameter | Description |
---|---|
jd | Required. A Julian Day number |
mode | Optional. Specifies how to return the weekday. Can have one of the following values:
|
Technical Details
Return Value: | Returns the Gregorian weekday as a string or integer (depends on the mode parameter) |
---|---|
PHP Version: | 4+ |
< PHP Calendar Reference