Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

How to format datetime in powershell

$
0
0

I am trying to format the datetime for my folders once they are sorted into descending order . At the moment I have datetime format like 25-04-2014 and I would like to to get displayed 25th april 2014 I am using this code but dont know how to use the formatting

$sortedContent = $content |  Sort-Object LastWriteTime -Descending


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>