How to extract the day of the month as a number from title (YYYY-MM-DD)

Within Templater you’ll need to do: <% moment(tp.file.title).format("DD")%>, see format reference. This format is used by Daily notes and Templater (and moment in general), but do note that Dataview uses Luxon tokens.

1 Like