G
guw
Guest
This code:
COleDateTime dt(2018,7,5,0,0,0);
CString strDate = dt.Format(VAR_DATEVALUEONLY);
bool bSuccess = dt.ParseDateTime(strDate);
results in "dt" being invalid and bSuccess being false if the system date format is set to Serbian (Cyrillic, Serbia).
I don't think I am doing anything wrong. I tested a few different things by specifying the LCID and using LOCALE_NOUSEROVERRIDE as flag, with no changes. strDate is "5.7.2018." and if remove the last "." it works. But that can't be the correct solution.
To me it seems like COleDateTime:arseDateTime is not working correctly for this format setting.
Continue reading...
COleDateTime dt(2018,7,5,0,0,0);
CString strDate = dt.Format(VAR_DATEVALUEONLY);
bool bSuccess = dt.ParseDateTime(strDate);
results in "dt" being invalid and bSuccess being false if the system date format is set to Serbian (Cyrillic, Serbia).
I don't think I am doing anything wrong. I tested a few different things by specifying the LCID and using LOCALE_NOUSEROVERRIDE as flag, with no changes. strDate is "5.7.2018." and if remove the last "." it works. But that can't be the correct solution.
To me it seems like COleDateTime:arseDateTime is not working correctly for this format setting.
Continue reading...