Created
June 2, 2021 10:25
-
-
Save MatthewSteeples/19b9467c13dcc9ec88586222ec603523 to your computer and use it in GitHub Desktop.
Is today a UK Bank Holiday?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
((Invoke-WebRequest https://www.gov.uk/bank-holidays/england-and-wales.json).Content | ConvertFrom-Json).events.Where({ $_.date -eq [DateTime]::Today.ToString("yyyy-MM-dd")}).Count -gt 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment