title: How to use __DATE__ and __TIME__ predefined macros in as two integers, then stringify?
body: <p>Want to use <strong>__ DATE __ and __ TIME __</strong> as integer for giving automated version to my code in compile time.</p>
  
  <pre><code>#define STRINGIZER(arg)     #arg
  #define STR_VALUE(arg)      STRINGIZER(arg)
  
  #define DATE_as_int_str useD(__DATE__) // What can be done ?
  #define TIME_as_int_str useT(__TIME__) // What can be done ?
  
  #define VERSION 1.4
  
  #define COMPLETE_VERSION STR_VALUE(VERSION) "." DATE_as_int_str "." TIME_as_int_str
  </code></pre>
  
  <p>and get <code>COMPLETE_VERSION</code> as string in a <code>const unsigned char []</code>.</p>
  
  <pre><code>const unsigned char completeVersion[] = ?? COMPLETE_VERSION;
  </code></pre>
  
  <p>Should output <strong>1.4.1432.2234</strong> something.</p>
  
  <p>One of the possible solution could be but did not work: <a href="http://www.velocityreviews.com/forums/t316565-convert-__date__-to-unsigned-int.html" rel="noreferrer"> convert-<strong>date</strong>-to-unsigned-int </a></p>
  
  <p>In context of compile time <a href="https://stackoverflow.com/questions/11204853/convertint-date-and-time-string-to-just-integers-in-c"> convertint-date-and-time-string-to-just-integers-in-c </a>
  One can refer <a href="https://stackoverflow.com/questions/11693219/macro-expanssion-and-stringification-how-to-get-the-marco-name-not-its-value/11694231#11694231"> expanssion-and-stringification-how-to-get-the-marco-name-not-its-value </a> </p>