Sample code for 30+ languages & platforms
Delphi ActiveX Requires Chilkat v11.0.0+

Transition from ZipEntry.GetDt to ZipEntry.FileDateTimeStr

Provides instructions for replacing deprecated GetDt method calls with FileDateTimeStr.

Chilkat Delphi ActiveX Downloads

Delphi ActiveX
var
entry: TChilkatZipEntry;
dtObj: ICkDateTime;
dt: TCkDateTime;

begin
entry := TChilkatZipEntry.Create(Self);

//  ...
//  ...

//  ------------------------------------------------------------------------
//  The GetDt method is deprecated:

dtObj := entry.GetDt();
if (entry.LastMethodSuccess = 0) then
  begin
    Memo1.Lines.Add(entry.LastErrorText);
    Exit;
  end;

//  ...
//  ...

//  ------------------------------------------------------------------------
//  Do the equivalent using FileDateTimeStr.

dt := TCkDateTime.Create(Self);
dt.SetFromRfc822(entry.FileDateTimeStr);