<p>I have a string containing a date, and another string containing the date format of the first string. Is there a function that I can call to convert that date into something like a SYSTEMTIME structure? Basically, I'd like the opposite of <a href="http://msdn.microsoft.com/en-us/library/ms776293(VS.85).aspx" rel="nofollow noreferrer">GetDateFormat()</a>.</p>

No, but you can write a function that will convert the date format string into a
```
sscanf
```
format string and series of variables.  Then copy the data from the variables to the
```
SYSTEMTIME
```
structure and you're all set.
It's not trivial, but it is probably the most flexible arrangement if you must support many different date formats.