Wednesday, August 3, 2022 You can use: [System.DateTime]::ParseExact('202301011412','yyyyMMddHHmm',$null) ….instead