Exemplo n.º 1
0
        /// <summary>
        /// St. Patricks day (March 17)
        /// </summary>
        /// <param name="year"></param>
        /// <returns></returns>
        public static DateTime StPatricksDay(int year)
        {
            var hol = new DateTime(year, 3, 17);

            hol = HolidayCalculator.FindNearestDayOfWeek(hol, DayOfWeek.Monday);
            return(hol);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Orangemen's day (July 12)
        /// </summary>
        /// <param name="year"></param>
        /// <returns></returns>
        public static DateTime OrangemensDay(int year)
        {
            var hol = new DateTime(year, 7, 12);

            hol = HolidayCalculator.FindNearestDayOfWeek(hol, DayOfWeek.Monday);
            return(hol);
        }