date and time of compilation

How can I find out time and date of compilation or linking of my program? I want to show time/date of the firmware version in the display. Is this possible?

ANSI C has some predefined macros… e.g. printf(“My App: %s %s”,DATE,TIME); Will print compile date and time for the source file Aslo have LINE and FILE