Skip to content

Option to customize date format #78

@iznaut

Description

@iznaut

Is your feature request related to a problem? Please describe.
I'm trying to do some querying using the Dataview plugin but it seems to have trouble parsing the date values from this plugin.

Here's an example:

table releaseDate
sort releaseDate asc
where releaseDate > date(2018-01-01)

Screenshot 2022-12-19 at 6 43 35 PM

  • The first entry has date format YYYY-MM-DD (updated manually). It appears as expected.
  • The second entry has date format MM/DD/YYYY (automatically set via Media DB plugin). It should be filtered out.
  • The third entry is expected to be there, but it's also worth noting that the date doesn't get nicely formatted like it does in the first entry.

Describe the solution you'd like
A config option for preferred date format to be used when creating new Media DB entries.

Additional context
I acknowledge that this may also be something that could be fixed on the Dataview side of things (or more likely - if I made an advanced JS query it would be possible already to handle this format), but since Obsidian's Daily Note feature already uses YYYY-MM-DD by default, I don't think it's unreasonable to think this plugin should support that format as well 🙂

Screenshot 2022-12-19 at 6 51 05 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions