RSS Links

 

Here are all of the RSS links for sections of this site

VB.NET/ASP.NET
 Java
 Unix/Linux
 Windows
 SQL Server

Home arrow Java arrow Getting the current date in java
Getting the current date in java PDF Print E-mail
Sunday, 24 January 2010
To get the current date in java then use the gettime() method

here is an example method

public void printCurrentDate()
{
        Date theDate = new GregorianCalendar().getTime();
        System.out.println("The current date is " + theDate);
}
 
< Prev   Next >
 
Designed by Graham Robinson Software