obsidian-query-language icon indicating copy to clipboard operation
obsidian-query-language copied to clipboard

Specify format for datetime placeholders

Open nickynicolson opened this issue 3 years ago • 2 comments

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.

nickynicolson avatar Apr 07 '21 14:04 nickynicolson

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? :)

jplattel avatar Apr 08 '21 06:04 jplattel

Yes that looks like a good solution

nickynicolson avatar Apr 08 '21 09:04 nickynicolson