Classic ASP
Classic ASP
Transition from Cert.GetValidFromDt to Cert.ValidFromStr
Provides instructions for replacing deprecated GetValidFromDt method calls with ValidFromStr.Chilkat Classic ASP Downloads
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
set cert = Server.CreateObject("Chilkat.Cert")
' ------------------------------------------------------------------------
' The GetValidFromDt method is deprecated:
' ckdt1 is a Chilkat.CkDateTime
Set ckdt1 = cert.GetValidFromDt()
If (cert.LastMethodSuccess = 0) Then
Response.Write "<pre>" & Server.HTMLEncode( cert.LastErrorText) & "</pre>"
Response.End
End If
' ...
' ...
' ------------------------------------------------------------------------
' Do the equivalent using the ValidFromStr property
set ckdt2 = Server.CreateObject("Chilkat.CkDateTime")
success = ckdt2.SetFromRfc822(cert.ValidFromStr)
%>
</body>
</html>