Get System Date Format String Win32

I need to get the system current date format string like (“dd-mm-yyyy” , “mm/dd/yyyy” ect.

GetDateFormat() API returns the formatted string like “12-09-2015” but need string like “dd-mm-yyyy”

C# solution

string sysFormat = CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern;

But I need in Win32.


Source: c++

Leave a Reply