Sample code for 30+ languages & platforms
Delphi ActiveX

Example: Http.GenTimeStamp method

Demonstrates the GenTimeStamp method.

Chilkat Delphi ActiveX Downloads

Delphi ActiveX
uses
    Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
    Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Chilkat_TLB;

...

procedure TForm1.Button1Click(Sender: TObject);
var
http: TChilkatHttp;
timestamp: WideString;

begin
http := TChilkatHttp.Create(Self);

// Return current date/time in the following format: Day, DD Mon YYYY HH:MM:SS GMT
timestamp := http.GenTimeStamp();
Memo1.Lines.Add(timestamp);

// Sample Output:
// Thu, 21 Aug 2025 11:17:31 GMT
end;