Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Finding the difference between two JodaTime DateTime objects

Header Image

  1. Using the Period class
    • This article covers how to use the Period class in JodaTime to represent the difference between two DateTime objects, providing examples of how to calculate the duration between two points in time in various units.
  2. Examples of finding the difference between two DateTime objects
    • The article covers examples of finding the difference between two JodaTime DateTime objects in different units, using the Period class and various PeriodTypes, to extract the difference in days, hours, minutes, or any other unit desired.

Table of contents