Hello, I am trying to replicate BiBTeX format (see: Complete list of BibTeX entry types [with examples] - BibTeX.com)
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{https://www.youtube.com/watch?v=Aekb3ppKm5w}
---
dv.span("```latex" + `
@${dv.current().Type.toUpperCase()}{${dv.current().bID}${dv.current().Date.year},
title={${dv.current().file.name}},
author={${dv.current().Author}},
date={${dv.current().Date}},
source={${dv.current().Source}},
note=Accessed:{${dv.current().Accessed}}
},\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().Date.day}}
is a workaround, but yields YYYY-m-d for certain values: 2022-06-08 becomes 2022-6-8, for example