Sample code for 30+ languages & platforms
Visual Basic 6.0

Transition from Cert.GetValidToDt to Cert.ValidToStr

Provides instructions for replacing deprecated GetValidToDt method calls with ValidToStr.

Chilkat Visual Basic 6.0 Downloads

Visual Basic 6.0
Dim cert As New ChilkatCert

' ------------------------------------------------------------------------
' The GetValidToDt method is deprecated:

Dim ckdt1 As CkDateTime
Set ckdt1 = cert.GetValidToDt()
If (cert.LastMethodSuccess = 0) Then
    Debug.Print cert.LastErrorText
    Exit Sub
End If

' ...
' ...

' ------------------------------------------------------------------------
' Do the equivalent using the ValidToStr property

Dim ckdt2 As New CkDateTime
success = ckdt2.SetFromRfc822(cert.ValidToStr)