Sample code for 30+ languages & platforms
Classic ASP

Transition from Email.GetDt to Email.EmailDateStr

Provides instructions for replacing deprecated GetDt method calls with EmailDateStr.

Chilkat Classic ASP Downloads

Classic ASP
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
set email = Server.CreateObject("Chilkat.Email")

' ...
' ...

' ------------------------------------------------------------------------
' The GetDt method is deprecated:

' dateTimeObj is a Chilkat.CkDateTime
Set dateTimeObj = email.GetDt()
If (email.LastMethodSuccess = 0) Then
    Response.Write "<pre>" & Server.HTMLEncode( email.LastErrorText) & "</pre>"
    Response.End
End If

' ...
' ...

' ------------------------------------------------------------------------
' Do the equivalent using EmailDateStr.

set dt = Server.CreateObject("Chilkat.CkDateTime")
success = dt.SetFromRfc822(email.EmailDateStr)

%>
</body>
</html>