PowerShell
PowerShell
Transition from Cert.GetValidFromDt to Cert.ValidFromStr
Provides instructions for replacing deprecated GetValidFromDt method calls with ValidFromStr.Chilkat PowerShell Downloads
Add-Type -Path "C:\chilkat\ChilkatDotNet47-x64\ChilkatDotNet47.dll"
$cert = New-Object Chilkat.Cert
# ------------------------------------------------------------------------
# The GetValidFromDt method is deprecated:
$ckdt1 = $cert.GetValidFromDt()
if ($cert.LastMethodSuccess -eq $false) {
$($cert.LastErrorText)
exit
}
# ...
# ...
# ------------------------------------------------------------------------
# Do the equivalent using the ValidFromStr property
$ckdt2 = New-Object Chilkat.CkDateTime
$ckdt2.SetFromRfc822($cert.ValidFromStr)