obsidian-note-from-template icon indicating copy to clipboard operation
obsidian-note-from-template copied to clipboard

currentDate with format cannot use colon as time's separator

Open emisjerry opened this issue 3 years ago • 3 comments

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

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

emisjerry avatar Feb 17 '22 14:02 emisjerry

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

mo-seph avatar Feb 20 '22 11:02 mo-seph

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

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

emisjerry avatar Feb 20 '22 14:02 emisjerry

Quoting does not work, any ETA on a fix?

gudstrand avatar Mar 14 '22 18:03 gudstrand