I am writing code which sends a mail to users. The mail text contains a date. While the date is calculated correctly, the date is displayed in English, even though all users have German language Windows OS and have German set as their language in the Notes preferences. Here is my code:
Set dt = New NotesDateTime(doc.GetItemValue("abc")(0))
dts = Format$(dt.LSLocalTime, "dddd, dd. MMMM yyyy")
mailText = replaceSubstring(mailText, "Datum", dts, True)
In the mail the date appears as, for example,
Wednesday, 09. December 2015
when it should appear as
Mittwoch, 09. Dezember 2015
The code is executed after a user clicks a button in the Notes Client. Not all mails have this problem but I can't detect any error in the OS and Notes preferences settings of the users who have experienced this. How can I get this date to appear in German rather than English?