Sample code for 30+ languages & platforms
C#

Transition from Email.GetDt to Email.EmailDateStr

Provides instructions for replacing deprecated GetDt method calls with EmailDateStr.

Chilkat C# Downloads

C#
Chilkat.Email email = new Chilkat.Email();

// ...
// ...

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

Chilkat.CkDateTime dateTimeObj = email.GetDt();
if (email.LastMethodSuccess == false) {
    Debug.WriteLine(email.LastErrorText);
    return;
}

// ...
// ...

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

Chilkat.CkDateTime dt = new Chilkat.CkDateTime();
dt.SetFromRfc822(email.EmailDateStr);