Classic ASP
Classic ASP
Replace Deprecated GetExpirationDt
Shows how to replace the deprecated GetExpirationDt method.Chilkat Classic ASP Downloads
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
set cache = Server.CreateObject("Chilkat.Cache")
' ....
' ....
cache_item_key = "xyz"
' Instead of this:
' dt1 is a Chilkat.CkDateTime
Set dt1 = cache.GetExpirationDt(cache_item_key)
' Do this:
set dt2 = Server.CreateObject("Chilkat.CkDateTime")
success = dt2.SetFromRfc822(cache.GetExpirationStr(cache_item_key))
%>
</body>
</html>