Sample code for 30+ languages & platforms
Perl Requires Chilkat v11.0.0+

Transition from Email.GetDt to Email.EmailDateStr

Provides instructions for replacing deprecated GetDt method calls with EmailDateStr.

Chilkat Perl Downloads

Perl
use chilkat();

$email = chilkat::CkEmail->new();

#  ...
#  ...

#  ------------------------------------------------------------------------
#  The GetDt method is deprecated:

# dateTimeObj is a CkDateTime
$dateTimeObj = $email->GetDt();
if ($email->get_LastMethodSuccess() == 0) {
    print $email->lastErrorText() . "\r\n";
    exit;
}

#  ...
#  ...

#  ------------------------------------------------------------------------
#  Do the equivalent using EmailDateStr.

$dt = chilkat::CkDateTime->new();
$dt->SetFromRfc822($email->emailDateStr());