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

sql server - python to mssql encoding problem -

java - SNMP4J General Variable Binding Error -

c# - BasicHttpBinding equivalent CustomBinding using WCF Client and PHP WebService -