Display current date and time

The problem

Write a program to display the current date and time.

Breaking it down

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

Output

Today is: Monday, Apr 25, 2016