windows - strftime codes vs GetLocaleInfo codes -
i need format date based on locale in windows. purpose use getlocaleinfo locale_sshortdate parameter.
get localeinfo returns m/d/yyyy. cannot pass strftime because strftime codes different. %m/%d/%y.
is there quicker way achieve this? assume not using mfc.
you can use getdateformatex function getlocaleinfoex if needed. in way can format data better mfc.
Comments
Post a Comment