Properties time type support for ISO 8601 standard

Use case or problem

Using the Unique note creator to make notes following this file name format:
YYYYMMDDTHHmmss.md

And with this file template to add ISO 8601 time frontmatter:

---
date: {{date:YYYYMMDD}}T{{time:HHmmss}}
---

Obsidian has added a Properties time type, but Obsidian does not currently recognize all valid forms of ISO 8601 date time strings and will report a type mismatch:

Screenshot 2023-08-05 at 2.15.50 PM

Proposed solution

The time property should fully support and follow ISO 8601.

Related bug report

2 Likes

In your screenshot, the date is not ISO 8601.

According to your link it is:

https://www.wikiwand.com/en/ISO_8601#Times

Date: YYYYMMDD
Time: Thhmmss
Full property: YYYYMMDDThhmmss

Timezone or offset from UTC is not required per the spec.

This is also something important to me. I can confirm that the full standard ATOM time format is not detected as a datetime in my vault (1.4.2).

2023-08-07T17:30:49+02:00

This is not detected as a valid date/time.

1 Like

Alright, my bad.

1 Like

Wouldn’t it be simpler to just add support for ISO8601? It’s really a boolean - has support for the standard or not, which includes timezones and basic/extended format.

2 Likes

To support ISO 8601 basic format (the one without : ) open a specific feature request.

Sorry, I’m confused and don’t want to create another bug/FR unless necessary. This is a specific feature request for ISO 8601 in Properties, regardless of the specific string format used, and not a request for partial ISO 8601 standard support.


Additional ISO 8601 information from Wikipedia:

As of ISO 8601-1:2019, the basic format is T[hh][mm][ss] and the extended format is T[hh]:[mm]:[ss].

So a time might appear as either “T134730” in the basic format or “T13:47:30” in the extended format.

If no UTC relation information is given with a time representation, the time is assumed to be in local time.

3 Likes

Is it possible to merge this thread and Properties: Support time offset in iso 8601 dates - Feature requests - Obsidian Forum as a FR titled “ISO8061 FULL support for time type properties”?

I can open it if you tell me so, but I don’t want to spam the forum.

Thanks!

This should work in the next version 1.4.3

3 Likes

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