Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

"Timestamp" format change

$
0
0

What I would like to do is instead of displaying this:

$obj = $metric.CounterSamples | Select-Object -Property Path, CookedValue, Timestamp;

I would like it to do this:

$obj = $metric.CounterSamples | Select-Object -Property Path, CookedValue, (Timestamp formatted like this yyyy/mm/dd:hh:mm:ss;

so change the "Timestamp" date and time format from it's default to universal.


Viewing all articles
Browse latest Browse all 21975

Trending Articles



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