Sample code for 30+ languages & platforms
Xojo Plugin

Transition from Cert.GetValidToDt to Cert.ValidToStr

Provides instructions for replacing deprecated GetValidToDt method calls with ValidToStr.

Chilkat Xojo Plugin Downloads

Xojo Plugin
Dim cert As New Chilkat.Cert

// ------------------------------------------------------------------------
// The GetValidToDt method is deprecated:

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

// ...
// ...

// ------------------------------------------------------------------------
// Do the equivalent using the ValidToStr property

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