title: Get Current Time in mm/dd/yyyy in C++
body: <p>I am using the following code for setting the time in a Date Control in MFC using C++</p>
  
  <pre><code>CTime date;
  date = date.GetCurrentTime();
  this-&gt;m_headerDate.SetTime(&amp;date);
  </code></pre>
  
  <p>This will get the Date and set it to the control in what ever format the user machine uses. But I want to set it to a format of ONLY mm/dd/yyyy.
  There should be some way of doing this in MFC. Are there any utility functions for this?</p>
  
  <p>Thanks,</p>