| Contents |
#include <codecogs/units/date/dayofweek.h>
using namespace Units::Date;
| int | dayOfWeek (int nDate, int type=1)[inline] Computes the day of the week (Sunday through to Monday), for the specified serial Julian date. | |
| Integer | cc_dayOfWeek (Integer nDate, Integer type) This function is available as a Microsoft Excel add-in. |
| intdayOfWeek( | int | nDate | |
| int | type = 1 | )[inline] |
#include <stdio.h> #include <codecogs/units/date/dayofweek.h> #include <codecogs/units/date/date.h> using namespace Units::Date; int main() { for(int i=10;i<20;i++) { int adate=date(2004, 10, i); printf("\n %d October 2004 is %d day of week", i, dayOfWeek(adate)); } return 0; }
| nDate | is a serial number of days from 24 November 4714 BC (1 January 4713BC in the Julian Calendar) - also known as the Julian Period. |
| type | defines the output style for the day of the week |