Returns the day of the week January 13, 1998:
<?php$jd=gregoriantojd(1,13,1998);echo jddayofweek($jd,1);?>The jddayofweek() function returns the day of the week.
jddayofweek( jd,mode);
parameter | describe |
---|---|
jd | Required. Number (Julian day count). |
mode | Optional. Defines how to return the day of the week (number or string). Can be one of the following values: 0 - Default. Returns the day of the week as an integer. (0 is Sunday, 1 is Monday...and so on) 1 - Returns the day of the week as a string. (Sunday, Monday, ...) 2 - Returns the day of the week as a string, in abbreviated form. (Sun, Mon, ...) |
Return value: | Returns the day of the week in the Gregorian calendar as a string or integer (depending on the mode parameter). |
---|---|
PHP version: | 4+ |