Write a Java program to display the system time

Program

public class Main {
 
  public static void main(String[] args){
         System.out.format("\nCurrent Date time of Your system is: %tc%n\n", System.currentTimeMillis());
    }
}

Output:

Current Date time of Your system is: Thu Jan 04 20:39:34 IST 2024

For latest job updates join Telegram Channel: https://t.me/sateeshm

Programs