mo-seph / obsidian-note-from-template

Simple plugin to create Notes from a template, and fill in fields defined there
MIT License
108 stars 9 forks source link

currentDate with format cannot use colon as time's separator #23

Open emisjerry opened 2 years ago

emisjerry commented 2 years ago

created: "{{CreateDateTime:currentDate:yyyy-MM-dd HH:mm:ss}}"

HH:mm:ss separator : (colon) makes problem.

mo-seph commented 2 years ago

It does! I could probably make the delimiter configurable, then one could set it up to use e.g. | which might be safer

emisjerry commented 2 years ago

How about treat colon as string like this (add quote character)?

created: "{{CreateDateTime:currentDate:yyyy-MM-dd HH':'mm':'ss}}"
gudstrand commented 2 years ago

Quoting does not work, any ETA on a fix?