Things I have tried
I am trying to make a template that gives me a note name of With the date, start time, and meeting title.
I have tried
<% await tp.file.rename( “{{gEvent.StartDateTime}}” + “{{gEvent.summary}}”) %>
Unfortunately the {{gEvent.StartDateTime}} spits out something like this:
2022-12-21T10:30:00-05:00
The colons are not allowed in a filename so the whole thing breaks down.
Additionally, {{gEvent.start}} and {{gEvent.start.date}} don’t seem to give any info
What I’m trying to do
Is there either
- A different gEvent I should be using
or - A way to format gEvent.StartDateTime in the tp.file.rename command