I have an application written in c# that cannot run on a public holiday or a weekend. I\'ve looked around a bit and haven\'t found anywhere (official) that provides all the
You can user the Nager.Date library for calculate public holidays. https://github.com/nager/Nager.Date
Nuget
PM> install-package Nager.Date
Example:
var publicHolidays = DateSystem.GetPublicHoliday(CountryCode.GB, 2017);
foreach (var publicHoliday in publicHolidays)
{
var name = publicHoliday.LocalName;
}