Sample code for 30+ languages & platforms
VB.NET

Transition from Cert.GetValidFromDt to Cert.ValidFromStr

Provides instructions for replacing deprecated GetValidFromDt method calls with ValidFromStr.

Chilkat VB.NET Downloads

VB.NET
Dim cert As New Chilkat.Cert


' ------------------------------------------------------------------------
' The GetValidFromDt method is deprecated:

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


' ...
' ...



' ------------------------------------------------------------------------
' Do the equivalent using the ValidFromStr property

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