Skip to content

Extract date from holyday #850

Answered by arkid15r
Rembardino asked this question in Q&A
Discussion options

You must be logged in to vote

You could use HolidayBase::get_named() for that

>>> import holidays
>>> us_holidays = holidays.US(years=2022)
>>> us_holidays.get_named("Thanksgiving")
[datetime.date(2022, 11, 24)]

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dr-prodigy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants