Basic date formatting code not working

This common snippet of code for some reason is simply rendering as all text for me.

# <% moment(tp.file.title,'YYYY-MM-DD').format("dddd, MMMM DD, YYYY") %>

Other aspects of my daily note plugin and templater are loading ok. I’ve inserted as plan text in source mode multiple ways and it keeps showing up as all text. I’ve tried different formats in the quotations all single quotes, all double quotes and mixing them up.

Any insights on what’s going on here would be super appreciated!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.