windows powershell how to get date and time code example Example: powershell get date Get-Date Tuesday, June 25, 2019 14:53:32