Sample code for 30+ languages & platforms
Objective-C

Transition from Email.GetDt to Email.EmailDateStr

Provides instructions for replacing deprecated GetDt method calls with EmailDateStr.

Chilkat Objective-C Downloads

Objective-C
#import <CkoEmail.h>
#import <CkoDateTime.h>

CkoEmail *email = [[CkoEmail alloc] init];

//  ...
//  ...

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

CkoDateTime *dateTimeObj = [email GetDt];
if (email.LastMethodSuccess == NO) {
    NSLog(@"%@",email.LastErrorText);
    return;
}

//  ...
//  ...

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

CkoDateTime *dt = [[CkoDateTime alloc] init];
[dt SetFromRfc822: email.EmailDateStr];