Program to demonstrate how to get current Date and Time in Java
Output of the program :
package com.hubberspot.object.example;
import java.util.Date;
public class WelcomeDate {
public static void main(String[] args) {
System.out.println("Hello, so you are back !");
System.out.println("Welcome to Hubberspot !");
System.out.println("Today's date is : "+ new Date());
}
}
Output of the program :
