obsidian-book-search-plugin icon indicating copy to clipboard operation
obsidian-book-search-plugin copied to clipboard

publishDate formatting

Open nimide opened this issue 2 years ago • 6 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}}.

nimide avatar Jan 17 '23 20:01 nimide

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

issam-seghir avatar Jan 22 '23 10:01 issam-seghir

I also want the ability to format the date

JohanPotgieter avatar May 01 '23 07:05 JohanPotgieter

Yes this would be a nice feature to customize.

Algorant avatar Jul 14 '23 14:07 Algorant

yes please

indigomarxist avatar Aug 07 '23 08:08 indigomarxist

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

Hamsquishery avatar Aug 22 '23 07:08 Hamsquishery

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

jmbenedetto avatar Jun 26 '24 20:06 jmbenedetto