Hi,
there is a "TDLEmitDatesInOutputFile" setting in the project's property, which may be what you're looking for.
Also, the last generation properties are saved into the lgp file so that should not be a problem.
Now, you should not be talking of "templates" if you mean generated code, because the file templates are specifically what the code is generated from, and what you will be updating if you wish to tweak what the generated code looks like.
The generator engine is documented with source code available in the download section if you wish to learn more about that process. Look for the SDK.
Cheers