I have a log that I want to parse and, among other things, convert the date/time from the current local format to UTC and convert it back to text.
I have the logic to do everything except the conversion part.
$_.Line -replace '(d{4}-d{2}-d{2}sd{2}:d{2}:d{2})',(conversion_here)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…