Is it possible for the IDE to read the current date from the PC and insert into a string in the sketch.
This is for an information screen where I want to show the date the sketch was uploaded.
At the moment I am changing this manually but would like it to be automatic.
The string I am using is similar to "ver: 1.01 Uploaded on dd.mm.yy"
The C and C++ standards mandate that the compilers provide two magic macros that resolve to string literals: DATE gives the time the file was compiled, and TIME gives the current time of day. So you could use:
const char compile_date = __DATE__ " " __TIME__;
and it would be something like (note, the 3 strings adjacent to each other become pasted together as one long string):
const char compile_date = "Sep 22 2013 01:19:49";