mProjectsCode / obsidian-media-db-plugin

A plugin that can query multiple APIs for movies, series, anime, games, music and wiki articles, and import them into your vault.
GNU General Public License v3.0
255 stars 31 forks source link

Option to customize date format #78

Open iznaut opened 1 year ago

iznaut commented 1 year ago

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

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
mProjectsCode commented 1 year ago

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