I wish to set a due date on a reminder. In this example, per the error message I receive, I understand that I am incorrectly sending a string when it should be type Date.
How do I do that? What is the proper syntax?
var ReminderEntry = "test"
var ReminderDue = "2021-01-04 23:10"
const calendar = await Calendar.forRemindersByTitle("Reminders");
const reminder = new Reminder();
reminder.title = ReminderEntry;
reminder.dueDate = ReminderDue
reminder.calendar = calendar;
reminder.save();
Script.complete()
Thank you in advance,
John