Dataview Date query inline

Hello, I am trying to replicate BiBTeX format (see: Complete list of BibTeX entry types [with examples] -

I am trying to use dataview to query dates, so I can have an output in “yyyy-MM-dd” format.

My metadata is formatted yyyy-MM-dd. For example, this could be 2022-06-08
When I query, I am getting 2022-06-08T00:00:00.000-07:00

Here is my YAML, inline code, and output:

bID: West
Type: Misc
Date: 2018-12-06
Publisher: University of Oregon
Accessed: 2022-06-08
Source: \url{}
dv.span("```latex" + `
},\n` + "```"); 

My Luxon settings are:

How can I eliminate the T00:00:00.000-07:00 from my text in the Accessed field and Date fields?

Previously tried: {${dv.current().Date.year}-${dv.current().Date.month}-${dv.current()}} is a workaround, but yields YYYY-m-d for certain values: 2022-06-08 becomes 2022-6-8, for example

dv.current().Date.toISODate() works for me. Check out the Luxon library’s options for outputting DateTime if that does not work for you.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.