How to extract the compilation date/time using the "current_date" symbol
I need to embed the date/time of firmware compilation into the firmware in a certain format - 1byte for day, 1 byte for month etc.
I’ve added the symbols in the “Path and symbols” window in the project properties:
Symbol: BUILD_DAY
Value: ${current_date:~6,2}
But it resolves to $F9
What am I doing wrong?
I use this symbol in a const array, which is placed at a defined address in the flash. It works properly, I can change the value of the symbol and it appears where it is supposed to be