gpt-3.5-turbo-0301· openai
Suzhen/CodeChat
Write a short powershell script in markdown
- User
Write a short powershell script in markdown
- Assistant
# This Powershell script retrieves the current date and time and saves it to a variable $now = Get-Date # This script then displays the current date and time in the console window Write-Host "The current date and time is: $now" - User
Write the script as text
- Assistant
Sure, here's the script as text:
# This Powershell script retrieves the current date and time and saves it to a variable $now = Get-Date # This script then displays the current date and time in the console window Write-Host "The current date and time is: $now"