title: Convert timestamp to the formatted date time using C++
body: <p>I can only use C++ standard library (C++14) to convert timestamp to the given format date-time. I new to C++ and I know that C++ doesn't support us a lot via a library like Java. 
  At a given date and time of <strong>2011-03-10 11:23:56 in the Central European Time zone (CET)</strong>, the following
  standard-format output will be produced: "<strong>2011-03-10T11:23:56.123+0100</strong>".</p>
  
  <pre><code>std::string format = "yyyy-MM-dd'T'HH:mm:ss'.'SSSZ"; //default format
  auto duration = std::chrono::system_clock::now().time_since_epoch();
  auto timestamp = std::chrono::duration_cast&lt;std::chrono::milliseconds&gt;(duration).count();
  </code></pre>
  
  <p>My syntax for the format string would be</p>
  
  <pre><code>G : Era 
  yy,yyyy : year (two digits/four digits) 
  M,MM : month in number (without zero/ with zero) - (e.g.,1/01) 
  MMM,MMMM : month in text (shortname/fullname)- (e.g.,jan/january) 
  d,dd : day in month (without zero/with zero)- (e.g.,1/01) 
  D : day in year
  F : day of week of month
  E, EEEE : day of week 
  h,hh : hours(1-12) (without zero/with zero)- (e.g.,1/01) 
  H,HH : hours(0-23) (without zero/with zero)- (e.g.,1/01) 
  m,mm : minutes (without zero/with zero)- (e.g.,1/01) 
  s,ss : seconds (without zero/with zero)- (e.g.,1/01) 
  S,SS,SSS : milliseconds 
  w,W : Week in year (without zero/with zero)- (e.g.,1/01) 
  a : AM/PM 
  z,zzzz : timezone name 
  </code></pre>