Sample code for 30+ languages & platforms
PHP ActiveX

Transition from Email.GetDt to Email.EmailDateStr

Provides instructions for replacing deprecated GetDt method calls with EmailDateStr.

Chilkat PHP ActiveX Downloads

PHP ActiveX
<?php

$email = new COM("Chilkat.Email");

// ...
// ...

// ------------------------------------------------------------------------
// The GetDt method is deprecated:

// dateTimeObj is a Chilkat.CkDateTime
$dateTimeObj = $email->GetDt();
if ($email->LastMethodSuccess == 0) {
    print $email->LastErrorText . "\n";
    exit;
}

// ...
// ...

// ------------------------------------------------------------------------
// Do the equivalent using EmailDateStr.

$dt = new COM("Chilkat.CkDateTime");
$dt->SetFromRfc822($email->EmailDateStr);

?>