To post code on the forum, either put bbcode [code][/code] tags or markdown three back-ticks ``` on their own lines, above and below your code. I have edited your post above.
Your posted code works for me and outputs an expected - 10-05-2025: some title