Date-Format in german doesn't have effect

29 views
Skip to first unread message

Rolf Schaub

unread,
Jan 19, 2023, 1:36:41 AM1/19/23
to Google Apps Script Community
I wanna have the month name in a date in german. the following code doesn't work:
var desiredFormat = "EE. dd. MMMM yyyy";
var locale = "de_DE"
var Datum = [];
var Datumx = new(Date)
Logger.log( Utilities.formatDate(Datumx,locale,desiredFormat))
***
output: Thu. 19. January 2023
*** 
It should be Don. 19.Januar 2023. Where I'm wrong?
Reply all
Reply to author
Forward
0 new messages