(i edited this to make more sense hopefully🤪)
I want to create a new date and time, by stripping the time from a date, add a certain number of days, then add a duration field back as a new time to the date such as :
1/3/24 11:00 am to 1/3/24 add 126 days becomes 5/8/24 then add 15 hours to get the result of 5/8/24 3:00 pm
here is my formula:
DATEADD(DATETIME_FORMAT(DATESTR(DATEADD(DATESTR({Initial Date}),{Days to Add},'d')),'MM-DD-YYYY'),{Duration},'s')
However when I use DATEADD to add the duration as a time, it assumes the starting time of 18:00 / 6pm AND cuts the days short by 1 so when I add the duration it adds it to the 18:00 / 6:00 pm for some reason not from 0:00 /12:00 am and is the day prior so 5/7/24 not 5/8/24