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

Popular posts from this blog

R List row name -

sql server - python to mssql encoding problem -

.net - Probably simple regex search -