jplattel / obsidian-query-language

An Obsidian plugin allowing you to query your notes
176 stars 6 forks source link

Specify format for datetime placeholders #18

Open nickynicolson opened 3 years ago

nickynicolson commented 3 years ago

When using placeholders like created and modified it would be useful to be able to specify a format string - I'm probably only interested in date, or datetime to minute level precision - seconds and milliseconds not usually necessary.

jplattel commented 3 years ago

That's a good idea, would it be nice to have this configurable through the code block? So you could say:

```oql
<other paramaters here>
dateFormat: "YYYY-MM-DD" 


Or something like that? :)
nickynicolson commented 3 years ago

Yes that looks like a good solution