When displaying JavaScript Date Objects one can get troubles with formatting.
Here’s a good link how to handle different DateTimeFormats:
https://docs.microsoft.com/de-de/scripting/javascript/reference/intl-datetimeformat-object-javascript
For a simple german language date-format use the following snippet:
var options = { day: “2-digit”, month: “2-digit”, year: “numeric” };
var dateString = new Date().toLocaleDateString(“de-DE”, options);
and you will receive e.g. “08.12.2017”