Properties: let the user customize the way Dates/Times are displayed (independently from OS)

Same here. My system setting is in 24 hr and it’ll be nice to display time in 24 hr in Obsidian as well.

It’s not Obsidian. Try this on Windows 10:

I found that page by opening the console; the definition looks like

input[type='datetime-local']

My system’s time/date settings were set to Swiss German defaults, DD.MM.YYYY, Obsidian still showed it as MM/DD/YYYY, which is a pain to read for me.

My Windows Language was set to “English (United States)”. I changed it to “Deutsch (Schweiz)” and everything is fine.

Since you won’t be able to fix Windows, I would suggest to let people define their own format. Hey, it’s Obsidian, right? :wink:

2 Likes

I can also verify that it is broken

Win 10.
I use English as system language and Sweden as region. My preferred date format is yyyy-mm-dd

date properties at set as mm/dd/yyyy

need it to work as daily notes, give me a property to define my date format…

I use json/csv importer to import trading data and this date issue is breaking my dataview queries.

On the screenshot you can see that my old imports (left) display properties in the correct format (yellow)
New imports (right) use slashes even tough the handlebar template is set to date and displays it correctly.

If I use '=this.openPeriod' is also shows me the dates in the US format on the right and German format on the left

On an related issue I also can not import my CSV rows as dates anymore. (purple) They all become underscores as file.name which now renders my queries obsolete… : (

+1. I’m facing the same issue

I wouldn’t call it a “feature request”. This is a bug.

Windows 11 Pro 22H2 build 22621.2428 (English).
Obsidian v. 1.4.16.

Windows time format: YYYY-MM-DD
but Obsidian shows: MM/DD/YYYY (the stupidest possible format).

All we need is Date/Time format in “Apperance” (in the same way that we could define it in “Templates”).

9 Likes

How does the date on Windows taskbar look like?

Another cry for help here.

My windows panel:
image

Calendar settings:
image

What I have in properties:
image

5 Likes

Hey there, just adding to the list.

My formats are set to french :

My languages are set this way so that everything is in English, which is far better for debugging stuff than french :

But here is what my Obsidian is giving me ever since the property plugin exists :

image

I don’t get it.

  • Are you using win 11?
  • How is the date shown in windows’ clock in the system tray?
  • Did you restart obsidian after making these changes on your OS?
  • What does it show in source mode?
  • If you open chrome go to this page. How does the date input look like?

I moved this comment to the appropriate topic:

3 Likes

+1 Same problem with displayed date here.

  • Windows 10Pro x64 latest todate
  • Windows in US locales but tweaked (as I do not like US non-logical format) so system tray uses ISO format YYYY-MM-dd 2023-12-07 (+24hr format HH:mm with leading zeroes)
  • Obsidian installed to Win with those settings (so date was set before obsidian appeared in), Obsidian used daily and Win daily started and shutdown, plenty of opportunities to learn date/time format
  • date in note created by Templater into note via <% tp.date.now() %> results in same date format as for file property type date I made manually = mm/dd/yyyy. And in view mode it shows in US form like 12/07/2023 … However in Source mode I see ISO date-created: 2023-12-07 ! So internally it somehow works, but there is display bug.
  • Chrome page shows ISO
2 Likes

+1
The new properties UI is nice to see.
My fields with ISO dates in them were automatically recognized as dates, and having a date picker and auto completion on the fields now is nice.

However, I’m on iOS.
My language is set to UK English, and my date format is set to YYYY-MM-DD, but Obsidian still displays a US date format, which is super confusing for me.
(The date picker, thankfully, uses ISO format in the source, so I can at least use that to set dates consistently with my existing notes.)

I understand that this feels like something the localization system should be handling, but OS support for using different locales for language/date/measurement or custom date formats really sucks.
GNU/Linux has it through the LC_ variables, and the possibility of building a custom locale, but Electron makes that a pain too.

It would be really nice to be able to override the locale-provided format somewhere in settings.

4 Likes

I’m sorry @WhiteNoise for late answer.

Because my Windows time format is set to be YYYY-MM-DD then, obviously, the date on Windows taskbar look like 2023-12-26. In Obsidian, however, it is 12/26/2023.

For me, there is also a conflict from the OS to the Obsidian presentation of time:

tester@pop-os:~$ locale
LANG=en_US.UTF-8
LANGUAGE=en
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=de_DE.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_ALL=
tester@pop-os:~$ date
Mi 27. Dez 16:05:05 CET 2023

So date should be in the german format DD.MM.YYYY

And on obsidian it’s:
image

Shouldn’t obsidian lend itself to the LC_TIME variable? I think so, all sources I looked up, confirm that. I can’t really change the other variables for the same reason that @RedeyeFR mentioned: debugging.

So +1 also for making an OS independent optional solution.

2 Likes

I am really glad this is being discussed this extensively. The issues mentioned here and some other personally ones are the reason I was not a fan of properties when they were introduced and I have not upgraded to that version.

4 Likes

You sure did the right choice, this is really a pain to use the US way of inputting date. I had my standard ISO like I wanted, and now I’m stuck. Even French would do, but let me define it.

I sure hope this topic gets traction, and it gets fixed, this app is a wonder !

3 Likes

I think 1.3.7 is the desktop version before properties that you can get from github. Because nice as it is, I cannot work with properties.

Yes but now there’s the table update and I can’t give up on that one, I’ll need to way for a fix :confused:

Yeah, I don’t use markdown tables so I’m not fascinated by the update. Dataview makes all my tables