Input Date field in a comment

Hello everybody !
I am building a template for CodeBlocks, which pre-write some includes, the main skull and a header.
This header looks like that :
/**
* @Author Me
* @Description Brief description
* @Date ??
*/

I would like to put the current Date, just after the line @Date, is-it possible ?
And if yes, it-is possible to put a field @FileName which copy the filename into the comment ?

Thanks for help,
Thibaut.
Shouldn't the date field contain the date you wrote the code?

Anyways from what I see, you are trying to make your text document automatically update some of it's content everytime it is opened. You may be surprised at this, but c++ does not have this functionality built into it. You might want to create a batch script (or bash for *nix users) that you will run which will do this update for you.
Hello,
Thank you Smac89 for your answer,
I don't want to update fields at each opening, just on the file creation.

I thought it was possible to write this 'code' in the comment to fill automaticly all the fields.

I'm not 'strong' with the scripts, so I think I'll just enter the date manually :)
It was to satisfy my curiosity, maybe when I'll have more time i'll try to write a script to field the comments automaticly :)

Thank you, Have a nice day.
Thibaut
Topic archived. No new replies allowed.