Tutorial by Examples

Joda-Time is a robust alternative to the Java date and time classes. Prior to Java SE 8, the standard Java date and time classes like java.util.Calendar are difficult to use and prone to errors. Joda-Time emerged as the de-facto standard library for date and time manipulation in many open-source-pr...
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: Maven <dependency> <groupId>joda-time</groupId> <artifactId>joda-time</artifactId> ...
We can now write the following HelloJoda program! import org.joda.time.LocalDate; public class HelloJoda { public static void main(String [] args) { LocalDate today = LocalDate.now(); System.out.println("Hello Joda! Today's date is: " + today); } } Whi...

Page 1 of 1