Sample code for 30+ languages & platforms
Objective-C

Transition from Cert.GetValidFromDt to Cert.ValidFromStr

Provides instructions for replacing deprecated GetValidFromDt method calls with ValidFromStr.

Chilkat Objective-C Downloads

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

CkoCert *cert = [[CkoCert alloc] init];

//  ------------------------------------------------------------------------
//  The GetValidFromDt method is deprecated:

CkoDateTime *ckdt1 = [cert GetValidFromDt];
if (cert.LastMethodSuccess == NO) {
    NSLog(@"%@",cert.LastErrorText);
    return;
}

//  ...
//  ...

//  ------------------------------------------------------------------------
//  Do the equivalent using the ValidFromStr property

CkoDateTime *ckdt2 = [[CkoDateTime alloc] init];
[ckdt2 SetFromRfc822: cert.ValidFromStr];