Japanese holiday for .NET
Install with nuget:
PM> Install-Package HolidayJp
.NET CLI
dotnet add package HolidayJp
var holidays = HolidayJp.Between(DateTime.Parse('2019-09-14'), DateTime.Parse('2019-09-21'));
Console.WriteLine(holidays[0].Name) //敬老の日
var holidays = HolidayJp.SomeMonth(2019, 9);
Console.WriteLine(holidays[0].Name) //敬老の日
var isHoliday = HolidayJp.IsHoliday(DateTime.Parse('2019-09-16'));
Console.WriteLine(isHoliday) //true
Holiday holiday;
var holiday = HolidayJp.TryGet(DateTime.Parse('2019-09-16'), out holiday);
Console.WriteLine(holiday.Name) //敬老の日
出典:[内閣府ホームページ] ( https://www8.cao.go.jp/chosei/shukujitsu/gaiyou.html )
The MIT License (MIT). Please see License File for more information.