How to keep consistent time format in source/view modes?

I am writing date in such format in source code mode:
date: “YYYY-MM-DD”

But my Obsidian turn that into US styled format in view mode. US style, like MM-DD-YYYY.

How to prevent this? How to keep consistent European time format?

Obsidian uses the short date format set on your computer. Change that then restart Obsidian

Windows:

  • Control Panel → Clock and Region → Region → Additional Settings
  • In the Date tab, change the “Short date format” to yyyy-MM-dd

Mac:

  • System Preferences → Language & Region → Advanced → Dates
  • Set short date format to YYYY-MM-DD

I’m not sure if this will help but have you tried using a plug-in called Timestamper? It inserts the time and date in any format you like.