Sample code for 30+ languages & platforms
Node.js

Transition from Cert.GetValidToDt to Cert.ValidToStr

Provides instructions for replacing deprecated GetValidToDt method calls with ValidToStr.

Chilkat Node.js Downloads

Node.js
NODEJS_PRELUDE

function chilkatExample() {

    var cert = new chilkat.Cert();

    //  ------------------------------------------------------------------------
    //  The GetValidToDt method is deprecated:

    // ckdt1: CkDateTime
    var ckdt1 = cert.GetValidToDt();
    if (cert.LastMethodSuccess == false) {
        console.log(cert.LastErrorText);
        return;
    }

    //  ...
    //  ...

    //  ------------------------------------------------------------------------
    //  Do the equivalent using the ValidToStr property

    var ckdt2 = new chilkat.CkDateTime();
    ckdt2.SetFromRfc822(cert.ValidToStr);

}

chilkatExample();