Getting compile time.

This is a discussion on Getting compile time. within the C Programming forums, part of the General Programming Boards category; Hello,
I want to show the date when my program was compiled on my local machine.
For example it shows ...

Getting compile time.

Hello,

I want to show the date when my program was compiled on my local machine.
For example it shows "Version 1.01, compiled at 'date'". Is there some way to get the date when my program is being compiled and store it in a variable?
Or how could I do this?