Date Functions

in Hindi - Date Functions



not yet

Source Code :

RUNimport java.util.Date;
 
public class Datefunctions {

public static void main(String[] args) {
           
Date date = new Date();
          
System.out.println("Current Date : " + date);
System.out.println("Current Hours : " + date.getHours());
System.out.println("Current Minutes : " + date.getMinutes());
System.out.println("Current Seconds : " + date.getSeconds());
System.out.println("Current Day : " + date.getDay());
System.out.println("Current Date : " + date.getDate());

}
}