How to change the locale of a formatted date in Powerpoint VBA

删除回忆录丶 提交于 2019-12-11 23:44:37

问题


in a powerpoint vba application I want to format a date according to the current spell-check language (which may or may not be the same as the system locale language).

e.g. Locale is German(Austria) but the document is in English for an english customer, hence the date format should be "1st January 2015" and not "01. Jänner 2015"

I found a solution for excel on this site: How to change the locale of a formatted date?

trying the same technique in powerpoint vba does not appear to work:

debug.print format (now(), "[$-415] MMMM")
 Jänner

debug.print format (now(), "[$-809] MMMM")
 Jänner

debug.print format (now(), "[any old rubbish] MMMM")
 Jänner

--> vba ignores whatever is in the square brackets.

Any suggestions how to achieve the same result within VBA?

来源:https://stackoverflow.com/questions/27920995/how-to-change-the-locale-of-a-formatted-date-in-powerpoint-vba

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!