jodatime Getting started with jodatime Installation


Example

Using the library archive

Download the JAR and add it to the classpath for your Java project

Using a build tool

If you are using a build tool like Maven or Gradle:

  1. Maven

    <dependency>
        <groupId>joda-time</groupId>
        <artifactId>joda-time</artifactId>
        <version>2.9.6</version>
    </dependency>
    
  2. Gradle

    Add the following line to the dependencies closure inside your build.gradle:

     compile 'joda-time:joda-time:2.9.6'