Sample code for 30+ languages & platforms
PowerShell

Transition from Email.GetDt to Email.EmailDateStr

Provides instructions for replacing deprecated GetDt method calls with EmailDateStr.

Chilkat PowerShell Downloads

PowerShell
Add-Type -Path "C:\chilkat\ChilkatDotNet47-x64\ChilkatDotNet47.dll"

$email = New-Object Chilkat.Email

# ...
# ...

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

$dateTimeObj = $email.GetDt()
if ($email.LastMethodSuccess -eq $false) {
    $($email.LastErrorText)
    exit
}

# ...
# ...

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

$dt = New-Object Chilkat.CkDateTime
$dt.SetFromRfc822($email.EmailDateStr)