Minor Meta values at fault

A Meta Property Question Relating to YYYY-MM-DD changing automatically to MM-DD-YYYY. Everywhere else outside of Yaml is not a problem:

Details:
I’ve been using a meta key, ‘CreatedDate:’ in Yaml, using the date format YYYY-MM-DD in the form of a text field (property type). Ok.

It’s because I cannot get ‘CreateDate:’ to view the date in the YYYY-MM-DD format for it will only display with the MM-DD-YYYY format everytime!

I’ve checked all the date format choices in Obsidian and all the plugins I’m using as well.

It’s works AS IS, but sooner or later when I start using properties with Dataview for various display options it’s going to give me some problems in the next few days! :slight_smile: ~Rob

Are you on Windows? And what is your OS system date format set to?

There is an open bug related to date format. Maybe you are experiencing this bug: Properties: Date format not following system settings

And there is a feature request to set values independent from the OS settings: Properties: let the user customize the way Dates/Times are displayed (independently from OS)

I don’t know the full details, but those are the threads I’m aware of.

(Also, that’s not what the Meta category is for, so this was moved to help. :+1:)

Rigmarole,

Thanks alot. If thats a bug then I’ll just have to check out my PC (windows 11) and work with dataview with all this in mind. Again, thank you.

~Rob Luce

Yet another reply:
2025-03-09 Sunday

Rigmarole,

It’s very well looks like it’s related to my device.
This means I’m force to using dates in TEXT formatting when using Dataview along with MetaBind etc.

Hope there will be a forthcoming bug fix in Obsidian that will separate date useage apart from our devices in the near future.

~Rob Luce

1 Like

Note that there is a vital difference between what is stored in the file vs what is displayed. If the source mode lists the dates in ISO8601, then dataview will understand the properties as dates, even though the displayed value is different.

2 Likes

What you are implying as I’m now seeing, everything is still working fine. ~RL

If you add a date property in Obsidian it’ll store the actual date as an ISO 8601 date in the source mode. That’s the stored text in the file would be something similar to CreateDate: 2025-03-31.

When you’re in live preview and/or reading mode, this should be displayed according to your locale settings, so it could be displayed as something else. Like 31.03.2025 when I’m using the Norwegian locale.

Lastly, when the same date is read by dataview it respects the date format in Settings > Dataview > Date format.

Here is an example showing source mode, live preview and reading mode of the same file:

Here I’ve used MMMM dd, yyyy in my dataview settings, so you see it as mars 31, 2025 in live preview and reading mode.


Finally, the main point to make Dataview happy whenever you get around to using properties (or inline fields) with dates is to stick to the source being in the ISO 8601 format (as shown above), and the properties will be easy to deal with.

Having them as pure dates, will allow you to do whatever formatting of them either through the settings of Dataview, or through the use of dateformat() for specific needs in some query.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.