Sample code for 30+ languages & platforms
AutoIt

Transition from Cert.GetValidToDt to Cert.ValidToStr

Provides instructions for replacing deprecated GetValidToDt method calls with ValidToStr.

Chilkat AutoIt Downloads

AutoIt
$oCert = ObjCreate("Chilkat.Cert")

; ------------------------------------------------------------------------
; The GetValidToDt method is deprecated:

Local $oCkdt1 = $oCert.GetValidToDt()
If ($oCert.LastMethodSuccess = False) Then
    ConsoleWrite($oCert.LastErrorText & @CRLF)
    Exit
EndIf

; ...
; ...

; ------------------------------------------------------------------------
; Do the equivalent using the ValidToStr property

$oCkdt2 = ObjCreate("Chilkat.CkDateTime")
$oCkdt2.SetFromRfc822($oCert.ValidToStr)