jodatime Getting started with jodatime Hello Joda!


Example

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);
    }
}

Which will output something like this:

Hello Joda! Today's date is: 2016-11-26