DATEDIFF, DECIMALTOTIME, TIMETODECIMAL
-
I want to sum two time periods which I pre-calculate using DATEDIFF and also format conversion.
However, I cannot get the desired result in the year, month, day format.
(I already looked at you here –link-, but I couldn’t do it)
Here are some code inserts to understand the question
fieldname17:
(function(){var o = DATEDIFF( fieldname3, fieldname2, “dd.mm.yyyy”, “y”);
return CONCATENATE(o[“years”], ” “, o[“months”], ” “, o[“days”]);
})()fieldname18:
(function(){var o = DATEDIFF( fieldname13, fieldname12, “dd.mm.yyyy”, “y”);
return CONCATENATE(o[“years”], ” “, o[“months”], ” “, o[“days”]);
})()DECIMALTOTIME(SUM(TIMETODECIMAL(fieldname17,”dd.mm.yyyy”,”y”),TIMETODECIMAL(fieldname18,”dd.mm.yyyy”,”y”)),”y”,”y,m,d”)
The topic ‘DATEDIFF, DECIMALTOTIME, TIMETODECIMAL’ is closed to new replies.