Node.js
Node.js
Replace Deprecated GetExpirationDt
Shows how to replace the deprecated GetExpirationDt method.Chilkat Node.js Downloads
NODEJS_PRELUDE
function chilkatExample() {
var cache = new chilkat.Cache();
// ....
// ....
var cache_item_key = "xyz";
// Instead of this:
// dt1: CkDateTime
var dt1 = cache.GetExpirationDt(cache_item_key);
// Do this:
var dt2 = new chilkat.CkDateTime();
dt2.SetFromRfc822(cache.GetExpirationStr(cache_item_key));
}
chilkatExample();