//Example of a Moving Public Holiday that is a half day //A half public holiday is defined as a date with the time set to 12PM public DateTime HalfDay(int year) { //Generate the date but move it to the following Monday if it falls on a weekend //The 13th of March return(DayCounterHelper.MovePublicHolidayToMonday(new DateTime(year, 3, 13, 12, 0, 0))); }
//New Year's Day public DateTime NewYearsDay(int year) { //Generate the date but move it to the following Monday if it falls on a weekend return(DayCounterHelper.MovePublicHolidayToMonday(new DateTime(year, 1, 1))); }