We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

SystemTimeToHttpDate

Call this function to convert a system time to a string in a format suitable for using in HTTP headers.

inline void SystemTimeToHttpDate(
   const SYSTEMTIME& st,
   CStringA & strTime 
);

st

The system time to be obtained as an HTTP format string.

strTime

A reference to a string variable to receive the HTTP date time as defined in RFC 2616 (http://www.ietf.org/rfc/rfc2616.txt) and RFC 1123 (http://www.ietf.org/rfc/rfc1123.txt).

Header: atlutil.h

Show: