Skip to content

Instantly share code, notes, and snippets.

@JekRock
Created September 3, 2017 18:40
Show Gist options
  • Save JekRock/4a600bb383dd3b90cbb4ce2c7613979f to your computer and use it in GitHub Desktop.
Save JekRock/4a600bb383dd3b90cbb4ce2c7613979f to your computer and use it in GitHub Desktop.
$date = Get-Date -format "yyyyMMdd"
$date | Out-File c:\test.txt
$text = Get-Content c:\test.txt
$date = [datetime]::ParseExact($date, "yyyyMMdd", $null)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment