Wednesday 7 February 2018

Simple Java program to print current date and time.


Java program to display current date.

Date function in Java Programming code.



/*
Java Date example.
This Java Date example program describes how Java Date function from utility is being used in Java language.
*/

import java.util.*;

public class JavaDateProgram{

          public static void main(String args[]){
            /*
              Create date object with current date and time.
            */
 Date dateandtime = new Date();
  System.out.println("Current Time is " + dateandtime);

  }
}

Output:


Current Time is Sat Feb 08 16:10:21 IST 2018

31 comments :

  1. The actual time and effect taken to create this wonderful article were really so great, thanks much for creating and posting in here...
    Best Online Software Training Institute | Java Training

    ReplyDelete
  2. Your very own commitment to getting the message throughout came to be rather powerful and have consistently enabled employees just like me to arrive at their desired goals.

    java training in chennai | java training in bangalore

    java online training | java training in pune

    selenium training in chennai

    selenium training in bangalore

    ReplyDelete
  3. You’ve written a really great article here. Your writing style makes this material easy to understand.. I agree with some of the many points you have made. Thank you for this is real thought-provoking content
    python training in chennai
    python training in Bangalore
    Python training institute in chennai

    ReplyDelete
  4. You have really done a good Job and thanks for these kind of useful content.

    Java Course in Bangalore

    ReplyDelete
  5. Java is the strongest and oldest knowledge when compare to others. Till Java Developers are mostly wanted in the market. Get Core Java Training in Bangalore from TIB Academy with placement assistance.

    ReplyDelete
  6. And indeed, I’m just always astounded concerning the remarkable things served by you. Some four facts on this page are undeniably the most effective I’ve had.
    SOFTWARE TRAINING IN CHENNAI
    POWERBI TRAINING IN CHENNAI

    ReplyDelete
  7. Thank you so much for posting this. I really appreciate your work. Keep it up. Great work!Best software training company with placement in Hyderabad

    ReplyDelete
  8. Thank you so much for posting this. I really appreciate your work. Keep it up. Great work!Best Placement company in Hyderabad

    ReplyDelete
  9. This comment has been removed by the author.

    ReplyDelete
  10. This comment has been removed by the author.

    ReplyDelete

  11. Very excellent post.The knowledge you have been sharing through this post is very helpul to bring up new ideas and to innovate big things.I suggesst everyone to go through this blog,you not only get knowledge on it but enjoy reading the post.Thanks for sharing.
    Python Certification Course in Bangalore

    ReplyDelete
  12. Such a very useful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. After reading your article I was amazed. I know that you explain it very well. And I hope that other readers will also experience how I feel after reading your article
    Data Science Training In Chennai

    Data Science Online Training In Chennai

    Data Science Training In Bangalore

    Data Science Training In Hyderabad

    Data Science Training In Coimbatore

    Data Science Training

    Data Science Online Training

    ReplyDelete
  13. Your contents are completely awesome and share worthy. I really appreciate your efforts that you put on this. Keep sharing. For more Java Programming For Kids related information visit Techno Smart Kids

    ReplyDelete

  14. This is a great inspiring article. I am pretty much pleased with your good work. otherwise anyone wants to learn PDMS Course so contact here- +91-9311002620 or visit website- https://www.htsindia.com/Courses/cad-cam-cae/pdms-training-course

    ReplyDelete
  15. Great job for publishing such a nice article. Your article isn’t only useful but it is additionally really informative. Thank you because you have been willing to share information with us.Best Online Software Training Institute In Hyderabad

    ReplyDelete
  16. Selenium with java online training
    at Online IT Guru from the industry experts offers you hands-on Selenium Testing Training solutions from beginner to advance level.

    ReplyDelete
  17. I appreciate your efforts which you have put into this article. This post provides a good idea about java program. Genuinely, it is a useful article to increase our knowledge. Thanks for sharing such articles here. Family medicine physician Jobs Texas

    ReplyDelete
  18. Java is a widely used general-purpose programming language, it is also being used in Android application development. I appreciate the author's efforts in sharing these educational blog. Great blog, thank you for sharing this. Best Java Training Institute in Chennai

    ReplyDelete
  19. Infycle Technologies offers couples for care and technology in addition to Python Training in Chennai, 100% of the internship class will be prepared. After completing the training, the participants will be sent to the upper MNCs interviews. Call 750633333 to get more information and get a free display.

    ReplyDelete
  20. Already you people know about Oracle Huge growth. PLSQL is also one of the parts of oracle already. PLSQL students are moving to Advanced PL SQL now because they know about the importance and value of this course. Wanna be part of this PLSQL training in Chennai for more enquiries call 7502633633.PLSQL Training in Chennai | Infycle Technologies

    ReplyDelete
  21. Естественные проявления или обрядовые убийства животных составили точное объяснение обнаруженного. Начальные средства гадания образовались за несколько тысяч лет до Н.Э. Гадание на человека считается самым верным вариантом просмотреть грядущее личности.

    ReplyDelete
  22. Wonderful blog with great piece of information. Regards to your effort. Keep sharing more such blogs. Looking forward to learn more from you. full stack development service

    ReplyDelete