German date format for default value

In PHPMaker 2021, I was able to specify date(“d/m/y”) as the default value for a german date on the add page and got ‘22.10.23’.
In PHPMaker 2023 I get the error “Failed to parse time string (22/10/23) at position 0 (1): Unexpected character”.
I can’t get the default value like above ‘22.10.23’.
With the default value date(“d.m.y”) I get ‘22/10/23’.
In my locale file it says “dd.MM.yy”.
How do I format the default value for the german date?

Double check your Fields setup, make sure you have already chosen Date under View Tag pane → Format → Date/Time format, before re-generating ALL the script files again.

I have that. But it doesn’t change the default date in the add page at all. when I use the datetime picker I get “22.10.23”. But the default value is always “22/10/23”.

Try this in Row_Rendered server event:

if (CurrentPageID() == "add") {
    $this->YourField->EditValue = date("d.m.y"); // adjust YourField to your actual field name
}

When I tried this, I noticed that there
$this->date->EditValue = date(“d/m/y”);
was already entered. That was the reason for the incorrect display.
Now that I removed that, everything works as it should.
Thanks for the hint to look there.