obsidian-media-db-plugin icon indicating copy to clipboard operation
obsidian-media-db-plugin copied to clipboard

Option to customize date format

Open iznaut opened this issue 2 years ago • 1 comments

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

iznaut avatar Dec 20 '22 00:12 iznaut

Good idea, I will implement this if I can find some free time during the Christmas and new year vacation

mProjectsCode avatar Dec 20 '22 15:12 mProjectsCode