I have a "Before compile" task set in the studio which writes a file "CompileHeader.h" where the contents are:

Code:
 
DEFINE C$_COMPILEDATETIME for "16-Oct-2021 16:45:08"