Easy Tutorial
❮ Func Array Flip Php Preg_Grep ❯

PHP jddayofweek() Function

PHP Calendar Reference Manual

Example

Return the day of the week for January 13, 1998:


Definition and Usage

The jddayofweek() function returns the day of the week for a given date.

Syntax

Parameter Description
jd Required. A number representing the Julian day count.
mode Optional. Defines how the day of the week is returned (as a number or string). It can be one of the following values: 0 - Default. Returns the day of the week as an integer. (0 for Sunday, 1 for Monday, and so on) <br> 1 - Returns the day of the week as a string. (Sunday, Monday, ...) <br> 2 - Returns the day of the week as a short string. (Sun, Mon, ...)

Technical Details

Return Value: Returns the day of the week as a string or integer (depending on the mode parameter) in the Gregorian calendar.
PHP Version: 4+
--- ---

❮ Func Array Flip Php Preg_Grep ❯