Skip to content

Instantly share code, notes, and snippets.

@MatthewSteeples
Created June 2, 2021 10:25
Show Gist options
  • Save MatthewSteeples/19b9467c13dcc9ec88586222ec603523 to your computer and use it in GitHub Desktop.
Save MatthewSteeples/19b9467c13dcc9ec88586222ec603523 to your computer and use it in GitHub Desktop.
Is today a UK Bank Holiday?
((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