Step By Step Process To See The Date And Time Using Java

Step By Step Process To See The Date And Time Using Java 

 
Step 1: Go to Notepad and open the New Project.
 
File→New or Ctrl+N. 
 
new 
 
Step 2: 
Import from Java utility package.
 
package
 
Step 3: We can write the class name and declare the variable.
 
code
 
Step 4:
 You can write the overall program.
 
code 
 
Step 5: Go to the command prompt by pressing Windows+R.
 
code
 
Step 6: You can see the output.
 
output