title: How can I generate an RFC1123 Date string, from C code (Win32)
body: <p><a href="https://www.rfc-editor.org/rfc/rfc1123" rel="nofollow noreferrer">RFC1123</a> defines a number of things, among them, the format of Dates to be used in internet protocols.  HTTP (<a href="https://www.rfc-editor.org/rfc/rfc2616" rel="nofollow noreferrer">RFC2616</a>) specifies that date formats must be generated in conformance with RFC1123.</p>
  <p>It looks like this:</p>
  <pre><code>Date: Wed, 28 Apr 2010 02:31:05 GMT
  </code></pre>
  <p>How can I generate an RFC1123 time string from C code, running on Windows?
  I don't have the use of C# and DateTime.ToString().</p>
  <p>I know I could write the code myself, to emit timezones and day abbreviations, but I'm hoping this already exists in the Windows API.</p>
  <p>Thanks.</p>