I can get current date and time in yyyy/mm/dd format in powershell. I want the output of this cmd to be put in text file.
Currently Command I run is
get-date -format yyyy/mm/dd
Works as expected but I when I try to redirect output to file I see error
get-date -format yyyy/mm/dd - o test.txt
The question might be trivial as I am new to powershell