This Java example will show you how to display current date and time using Formatter and Calender class.
Output: Mon May 03 10:36:46 IST 2021
We can also print the current date and time by using the date class
Output: Mon May 03 10:38:36 IST 2021
JAVA File IO examples
JAVA Date & Time Progamming Examples