Copyright © tutorialspoint.com
| jddayofweek ( $julianday [, $mode] ); |
This function returns the day of the week. Can return a string or an integer depending on the mode.
| Parameter | Description |
|---|---|
| julianday | Required. A julian day number as integer |
| mode | Optional. Defines what to return (integer or string). Mode values:
|
The gregorian weekday as either an integer or string.
Try out following example:
<?php
$jd=cal_to_jd(CAL_GREGORIAN,date("m"),date("d"),date("Y"));
echo(jddayofweek($jd,1));
?>
|
This will produce following result:
Thursday |
Copyright © tutorialspoint.com