【发布时间】:2020-05-24 06:29:17
【问题描述】:
我需要我的代码来创建一个以德语月份命名的文件夹: 不是 3 月 5 日 但 05 月 5 日
Dim strMonth As String
strMonth = Format(Date, "mm")
' Check for month folder and create if needed
If Len(Dir("C:\Users\Luca\Desktop\TestDaty\" & client & "\" & Year(Date) & "\" & strMonth & " " & MonthName(Month(Date), False), vbDirectory)) = 0 Then
MkDir "C:\Users\Luca\Desktop\TestDaty\" & client & "\" & Year(Date) & "\" & strMonth & " " & MonthName(Month(Date), False)
End If
所以也许这里有一些国家代码? 月名(月(日) 请帮我!!! :)
【问题讨论】:
-
您可以将所有英语月份和对应的德语月份的翻译存储为字典中的键:值对。然后做
month_in_german = dict(month).