Check out example codes for "finding holydays asp.net". It will help you in understanding the concepts better.

Code Example 1

PM> install-package Nager.Date

Code Example 2

var date = new DateTime(2018, 01, 01);
if (DateSystem.IsPublicHoliday(date, CountryCode.DE))
{
    //Yes - New Year's Day
}

Code Example 3

var publicHolidays = DateSystem.GetPublicHoliday(2018, CountryCode.DE);

Learn ReactJs, React Native from akashmittal.com