Wednesday, 6 August 2014

Write a Program in Java which give out of Current Date and Time

Structure of the Problem Requirements 

In this small problem we will learn how to find current Date and Time in Java. Java has builtin Date Class , we Just create its instance and then generate it with the help of tostring() method . Here is the source code of this problem which develop a better understanding for you.

Source Code

package com.ancodingpoint.www;

import java.util.Date;
import java.util.Scanner;
public class Find_Date
public static void main(String[] args)
        Date date = new Date ();    // java has buliting Date class
        System.out.println(" This Method will show current Date & Time \n " + date.toString());

Output of the Program

Java Programming
Date and Time 

Share it Please

About Author!

Asad Niazi is Software Engineer , Programmer, Web Developers and a young mentor of Tech Solutions Desk and Blogging Solutions . Asad Love to writes about Technology, Programming, Blogging and make money online.

1 comments: Post Yours! Read Comment Policy!▼
Important Note:
We have Zero Tolerance to Spam. Chessy Comments and Comments with Links will be deleted immediately upon our review.

  1. very good ideas.. i've read this and i learn new things .. FOR THOSE who doesnt visit this website you should try to read.. tnks