I have a COleDateTime object and I want to parse a date string in the format YYYY-MM-DD.
The string variable, for example, is:
std::string strDate = "2022-07-04";
COleDateTime allows me to use ParseDateTime to parse a string, but I see no way to tell it what format the components of the date string are. In C# I can do such with DateTime.Parse....
Based on the suggestion by @xMRi in the comments I have decided to use: