Sample code for 30+ languages & platforms
Delphi DLL

Transition from ZipEntry.GetDt to ZipEntry.FileDateTimeStr

Provides instructions for replacing deprecated GetDt method calls with FileDateTimeStr.

Chilkat Delphi DLL Downloads

Delphi DLL
uses
    Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
    Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, ZipEntry, CkDateTime;

...

procedure TForm1.Button1Click(Sender: TObject);
var
entry: HCkZipEntry;
dtObj: HCkDateTime;
dt: HCkDateTime;

begin
entry := CkZipEntry_Create();

// ...
// ...

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

dtObj := CkZipEntry_GetDt(entry);
if (CkZipEntry_getLastMethodSuccess(entry) = False) then
  begin
    Memo1.Lines.Add(CkZipEntry__lastErrorText(entry));
    Exit;
  end;

// ...
// ...

CkDateTime_Dispose(dtObj);

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

dt := CkDateTime_Create();
CkDateTime_SetFromRfc822(dt,CkZipEntry__fileDateTimeStr(entry));

CkZipEntry_Dispose(entry);
CkDateTime_Dispose(dt);

end;