I have a table in which I am using a start date+time. The end time needs to be formatted as a date if I want it to work in my Calendar view (which is shared to various departmental users).
I have ‘Class 1 Start’ [2/6/2021 8:00AM], I also have a field where this class has a defined meeting time [105 minutes]. I attempted to use a simple {dateadd} formula to define the ending time of Class 1. Hoping to use the start and end times together in the Calendar View (Airtable - Shared Calendar). Other fields have unique end times so I hard enter them, but we have 5 classes per course so I’m trying to build out a script that would remove the opportunity for data entry errors/oversight. Currently I use it where Classes have no end time, so they populate the calendar as a default 1 hour block. The ical feed thus is incorrect when I share this for use.
I have no experience with Scripts and my cursory search didn’t get me very far. Any guidance where I can piece together a script would be welcomed.
Goal: take start date+time (formatted as a date/time), reference another field to add minutes to start date+time’ to arrive at ‘end date+time’ but the field must be formatted in the table as a ‘date’ rather than a formula.
Failed attempts:
1.Simple formula using dateadd - Formula fields cannot be used in calendar as an end time in calendar view
2.Automation: when Class1 is updated, reference Class1End Formula field and insert in Class1End date formatted field - this seems to be a similar issue, error returned says “Fields” could not be converted to a string.