Is it recommended to use DateTime::createFromFormat for converting WMI timestamps in PHP?

When dealing with WMI timestamps in PHP, it is recommended to use DateTime::createFromFormat to properly convert the timestamp into a DateTime object. This function allows you to specify the format of the WMI timestamp so that it can be accurately parsed and converted.

$wmiTimestamp = "20220408120000.000000+000";
$dateTime = DateTime::createFromFormat('YmdHis.uO', $wmiTimestamp);
echo $dateTime->format('Y-m-d H:i:s');