Sample code for 30+ languages & platforms
VB.NET Requires Chilkat v11.0.0+

Transition from Cert.GetValidToDt to Cert.ValidToStr

Provides instructions for replacing deprecated GetValidToDt method calls with ValidToStr.

Chilkat VB.NET Downloads

VB.NET
Dim cert As New Chilkat.Cert


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

Dim ckdt1 As Chilkat.CkDateTime = cert.GetValidToDt()
If (cert.LastMethodSuccess = False) Then
    Debug.WriteLine(cert.LastErrorText)
    Exit Sub
End If


'  ...
'  ...



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

Dim ckdt2 As New Chilkat.CkDateTime
ckdt2.SetFromRfc822(cert.ValidToStr)