Hi guys, I need to change the date format of NotAfter and NotBefore to "MMMM/d/yyyy HH:MM:SS". Is this possible? Thank you!
If those properties are [datetime] datatype it is very easy. Note uppercase M in format is month, lowercase m in format is minutes.
$NotBefore = Get-Date -Date 'July 1, 2021 13:45'
Get-Date $NotBefore -Format 'MMMM/d/yyyy HH:mm:ss'
Powered by IDERA