Node.js
Node.js
Transition from Cert.GetValidFromDt to Cert.ValidFromStr
Provides instructions for replacing deprecated GetValidFromDt method calls with ValidFromStr.Chilkat Node.js Downloads
NODEJS_PRELUDE
function chilkatExample() {
var cert = new chilkat.Cert();
// ------------------------------------------------------------------------
// The GetValidFromDt method is deprecated:
// ckdt1: CkDateTime
var ckdt1 = cert.GetValidFromDt();
if (cert.LastMethodSuccess == false) {
console.log(cert.LastErrorText);
return;
}
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using the ValidFromStr property
var ckdt2 = new chilkat.CkDateTime();
ckdt2.SetFromRfc822(cert.ValidFromStr);
}
chilkatExample();