How to get current date and time in java
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 27470
Total Votes: 347 votes
Category: JAVA/Core JAVA
Submitted on: 2014-01-03 20:58:52
Submitted By: Chaitanya
Description:In this tutorial I have explained the ways to get current date/time in java with example programs. Java has the Date class available in java.util package, this class encapsulates the current date and time. We will use this class in our program along with SimpleDateFormat to fetch the date/time in desired format. More detail...