I am building an automation in which users will be entering flight times. I have a variable set up for the time of their flight (ex. 4:00 pm) and a variable for time needed to be blocked on a calendar (30 minutes). I want to be able to subtract the “timeBlocked” variable from the “flightTime” variable. Is this possible?
Yes. You can use DateTime inbuilt methods to add/subtract the time.
DateTime original = new DateTime(year, month, day, 16, 0, 0)
DateTime updated = original.Add(new TimeSpan(0,-30,0))
Regards,
Karthik Byggari
3 Likes