Yes, with LiveCycle Designer you can can use either FromCalc's "Time2Num()" function to get the number of milliseconds from the epoch date to the passed date time string, or use JavaScript's DateTime object to get the number of milliseconds from the epoch date. For both of these methods the format string for the date and time are very important in getting the correct value of the milliseconds from the epoch date.
Once one has the milliseconds from the epoch date for the start and end times, one need only compute the difference between the 2 values and and then convert then result back to days, hours, minutes, seconds, milliseconds as needed.