Good afternoon people!
I have a problem and after a lot of research I still don't know how to solve it
I have two variables @travel_time and @trip_duration, where I need to add the hours and minutes of the second to the first and create a new variable called @arrival_time
I didn't see any way to do this operation in ampscript
Does anyone know of a way I can help myself? I've been stuck on this task for 3 days
Example:
%%[
set @data1 = @travel_time
set @data2 = @arrival_time
]%%
%%=v(@data1)=%% %%=v(@ data2)=%%
______________________________________
21:00:00.000Z 08:00:00.000Z
______________________
04:00:00.000Z 02:55:00.000Z
@travel_time
) and then take the duration (@trip_duration
) and add that time onto the departure to get 'estimated arrival' time (@arrival_time
)? If so, could you provide a sample of the data in these fields so we can see format and data types?set @data1 = @travel_time set @data2 = @arrival_time %%=v(@data1)=%% %%=v(@ data2)=%% ______________________________________ 21:00:00.000Z 08:00:00.000Z ______________________ 04:00:00.000Z 02:55:00.000Z
HH:MM:SS.mmmZ
(10:41:12.932Z) orYYYY-MM-DDTHH:MM:SS.mmmZ
(2023-01-25T01:22:32.234Z)? This will change the way the date math is handled.