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

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -