Viewing post 1 (of 1 total)
Rather than:
$date=(Get-Date -Format d).toString()
$date=$date.replace("/","-")
I prefer using the format operator -f with a 4-digit year and fully padded days and months in YYYYMMDD order to make sorting easier. Modifying the formatting...
October 4, 2016 at 1:25 pm
#1904749