Thursday, February 23, 2012

Current system time


import java.sql.Timestamp;
 
public class demo {

    /**
     * @param args
     */
    public static void main(String[] args) {
 
         System.out.println("Date = "+new Timestamp(System
                 .currentTimeMillis()));
    }

}

No comments:

Post a Comment