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
It doesn't do quite what you've described, but I'd start by using COleDateTime::ParseDateTime. It works with localized date-time formats.
COleDateTime::ParseDateTime