// Today's date and time import java.time.*; public class DateAndTime { public static void main (String[]args) { LocalDate date = LocalDate.now(); System.out.println("Today's date is " + date); int day = date.getDayOfMonth(); System.out.println("Today is " + day + " day of the month"); DayOfWeek dow = date.getDayOfWeek(); System.out.println("Today is " + dow); Month month = date.getMonth(); System.out.println("We are currently in the month of " + month); int year = date.getYear(); System.out.println("The year is " + year); System.out.println(dow + "\t" + day + "\t" + month + "\t" + year); } } ========================================================================== OUTPUT ----jGRASP exec: java DateAndTime Today's date is 2021-05-26 Today is 26 day of the month Today is WEDNESDAY We are currently in the month of MAY The year is 2021 WEDNESDAY 26 MAY 2021 ----jGRASP: operation complete.