anpigon / obsidian-book-search-plugin

Obsidian plugin that automatically creates notes by searching for books

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

publishDate formatting

nimide opened this issue · comments

Presently, {{publishDate}} appears to be pulling YYYY-MM-DD from the Google API. Watching previous demos of your plugin, it appears {{publishDate}} used to pull only YYYY. Could you make it to where we could format the {{publishDate}} field? For example, I would like to have my file titles be {{publishDate:YYYY}} - {{title}}, but in my file's frontmatter, I like {{publishDate:YYYY-MM-DD}}.

A good idea I think about it too, I hope @anpigon will add it soon

commented

I also want the ability to format the date

Yes this would be a nice feature to customize.

yes please

ahh! I just installed the plugin, and found this issue. Yes, please, for the YYYY formatting capacity...

Hello, everyone. It is possible to achieve this by using <%= book.publishDate.substring(0, 4) %>.