title: C++11 get current date and time as string
body: <p>What is the state of the art way to get date and time as string in c++11? </p>
  
  <p>I know about <code>std::put_time</code>, but the reference says I shall use it only in streams.</p>
  
  <p>There is <code>std::chrono::system_clock</code> which provides <code>to_time_t</code> returning the time as <code>time_t</code> and lacking the date, doesn't it?</p>
  
  <p>I could use a stringstream like bames53: <a href="https://stackoverflow.com/questions/17223096/outputting-date-and-time-in-c-using-stdchrono">Outputting Date and Time in C++ using std::chrono</a> but that seems to be a workaround. </p>