Find difference between two datetimes and format at Y-m-d H:i:s
I’m trying to get the difference between two datetimes and return it as a datetime
. I’ve found examples using diff
but I can’t seem to get it right.
I’m trying to get the difference between two datetimes and return it as a datetime
. I’ve found examples using diff
but I can’t seem to get it right.
I want to subtract dates in ‘A’ from dates in ‘B’ and add a new column with the difference.