import hirondelle.date4j.DateTime;
public class Date4JExample {
public static void main(String[] args) {
DateTime dateTime = DateTime.forDateOnly(2022, 1, 1);
System.out.println(dateTime);
int year = dateTime.getYear();
int month = dateTime.getMonth();
int day = dateTime.getDay();
}
}