Let's say I have 2 variables in a Stored Procedure, both are Dates
Foo contains '13/10/2019 00:00:00'
Bar contains '01/10/1914 16:33:11'
I want to add Bar's time to Foo's date, so that I get a Foobar variable containing 13/10/2019 16:33:11
Is there a way to achieve this without converting any of them into a varchar?
Best Answer
Simple addition and subtraction.
Although the code is SQL code, the math works the same in PL/SQL.
This code:
Produces this desired results: