Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This function takes an HTTP time/date string and converts it to a SYSTEMTIMEstructure.

Syntax

BOOL InternetTimeToSystemTime(
  LPCTSTR 
lpszTime, 
  SYSTEMTIME* 
pst, 
  DWORD 
dwReserved
);

Parameters

lpszTime

[in] Long pointer to a null-terminated date/time string to convert.

pst

[out] Pointer to the converted time.

dwReserved

[in] Reserved. Must be set to zero.

Return Value

TRUE indicates that the string was converted. FALSE indicates failure. To get extended error information, call GetLastError.

Requirements

Header wininet.h
Library wininet.lib
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

WinInet Functions

Other Resources

SYSTEMTIME