Sample code for 30+ languages & platforms
Xojo Plugin

Transition from Cert.GetValidFromDt to Cert.ValidFromStr

Provides instructions for replacing deprecated GetValidFromDt method calls with ValidFromStr.

Chilkat Xojo Plugin Downloads

Xojo Plugin
Dim cert As New Chilkat.Cert

// ------------------------------------------------------------------------
// The GetValidFromDt method is deprecated:

Dim ckdt1 As Chilkat.CkDateTime
ckdt1 = cert.GetValidFromDt()
If (cert.LastMethodSuccess = False) Then
    System.DebugLog(cert.LastErrorText)
    Return
End If

// ...
// ...

// ------------------------------------------------------------------------
// Do the equivalent using the ValidFromStr property

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