How Can I Get the Compile Date and Time in Delphi

compilation, delphi

Solution

At least since Delphi 2007 the linker timestamp in the PE Header should be written. (In older versions like Delphi 5 the timestamp in the PE header was something in 1992 and the real timestamp could only be found in the resources)

If you already use the JCL then try PeReadLinkerTimeStamp from JclPEImage.pas SVN View

Problem

I'd like to be able to display in a Delphi 2009 program, the date and time that the program was compiled. Is there a simple way to do this?

Original source

Related problems