Skip to content

Instantly share code, notes, and snippets.

@stesee
Created August 31, 2024 06:15
Show Gist options
  • Save stesee/f90afeb42a9b30c5192e40be722257ac to your computer and use it in GitHub Desktop.
Save stesee/f90afeb42a9b30c5192e40be722257ac to your computer and use it in GitHub Desktop.
$response = Invoke-WebRequest 'google.at'
$response.headers.Date
# Sat, 31 Aug 2024 05:31:49 GMT
$parsedDate = [datetime]::Parse($response.headers.Date)
set-date $parsedDate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment