Sample code for 30+ languages & platforms
Node.js

Transition from Email.GetDt to Email.EmailDateStr

Provides instructions for replacing deprecated GetDt method calls with EmailDateStr.

Chilkat Node.js Downloads

Node.js
NODEJS_PRELUDE

function chilkatExample() {

    var email = new chilkat.Email();

    // ...
    // ...

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

    // dateTimeObj: CkDateTime
    var dateTimeObj = email.GetDt();
    if (email.LastMethodSuccess == false) {
        console.log(email.LastErrorText);
        return;
    }

    // ...
    // ...

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

    var dt = new chilkat.CkDateTime();
    dt.SetFromRfc822(email.EmailDateStr);

}

chilkatExample();