Definition and Usage
The JDDayOfWeek() function returns the day of a week.Syntax
jddayofweek(jd,mode)
| Parameter | Description |
|---|---|
| jd | Required. A number (a Julian day count) |
| mode | Optional. Defines what to return (integer or string). Mode
values:
|
Example
<?php
$jd=cal_to_jd(CAL_GREGORIAN,date("m"),date("d"),date("Y"));
echo(jddayofweek($jd,1));
?>
$jd=cal_to_jd(CAL_GREGORIAN,date("m"),date("d"),date("Y"));
echo(jddayofweek($jd,1));
?>
Thursday