Sample code for 30+ languages & platforms
PowerShell

Transition from ZipEntry.GetDt to ZipEntry.FileDateTimeStr

Provides instructions for replacing deprecated GetDt method calls with FileDateTimeStr.

Chilkat PowerShell Downloads

PowerShell
Add-Type -Path "C:\chilkat\ChilkatDotNet47-x64\ChilkatDotNet47.dll"

$entry = New-Object Chilkat.ZipEntry

# ...
# ...

# ------------------------------------------------------------------------
# The GetDt method is deprecated:

$dtObj = $entry.GetDt()
if ($entry.LastMethodSuccess -eq $false) {
    $($entry.LastErrorText)
    exit
}

# ...
# ...

# ------------------------------------------------------------------------
# Do the equivalent using FileDateTimeStr.

$dt = New-Object Chilkat.CkDateTime
$dt.SetFromRfc822($entry.FileDateTimeStr)