Write a program to display the current date and time.
public static void main(String[] args) { DateTimeFormatter formatter = DateTimeFormatter .ofPattern("EEEE, MMM d, y "); LocalDateTime dateTime = LocalDateTime.now(); System.out.println("Today is: " + formatter.format(dateTime)); }
Today is: Monday, Apr 25, 2016