| Contents |
#include <codecogs/units/date/firstmonday.h>
using namespace Units::Date;
| int | firstMonday (int year)[inline] Returns the date in January when the first Monday occurs. | |
| Integer | cc_firstMonday (Integer year) This function is available as a Microsoft Excel add-in. |
| intfirstMonday( | int | year | )[inline] |
#include <stdio.h> #include <codecogs/units/date/firstMonday.h> using namespace Units::Date; int main() { for(int i=2000;i<2004;i++) printf("\n The first Monday in year %d is on the %d January", i, firstMonday(i)); return 0; }Output:
The first Monday in year 2000 is on the 3 January The first Monday in year 2001 is on the 1 January The first Monday in year 2002 is on the 7 January The first Monday in year 2003 is on the 6 January
| year | can be any integer greater than -4799. |