Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%*
- const {getEvents} = this.app.plugins.plugins["google-calendar"].api;
- const file = await tp.file.title;
- const events = await getEvents({ startDate: window.moment(file) });
- var eventsString = await events.reduce((text, event) => text +=- [ ] ${moment(event.start.dateTime).format("HH:mm")} ${event.summary} \n, "");
- eventsString = eventsString.replace(/|/g, '-');
- %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement