LCID应用

GetDateFormat(
   MAKELCID(MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_US),SORT_DEFAULT),
   NULL, //Flags
   &tm,  //Time
   L"dd','MMM dd",//Format String
   buf,  //String buffer
   256);
MessageBox(NULL,buf,L"NLS Test",0);

GetDateFormat(
   MAKELCID(MAKELANGID(LANG_CHINESE,SUBLANG_CHINESE_SIMPLIFIED),SORT_CHINESE_PRC),
   NULL, //Flags
   &tm,  //Time
   L"dd','MMM dd",//Format String
   buf,  //String buffer
   256);
MessageBox(NULL,buf,L"NLS Test",0);

原文地址:https://www.cnblogs.com/spinsoft/p/2557182.html