Jan 6, 2004 #1 JoSno Programmer Apr 11, 2003 45 GB Right, this one is getting on my nerves! How do I get the system data and time? Can't find it!! Jo
Jan 6, 2004 1 #2 sedj Programmer Aug 6, 2002 5,610 System.currentTimeMillis() returns the number of milliseconds that have passed since January 1st, 1970. You may also want to look at the GregorianCalender class and SimpleDateFormat class. This link has an example of getting date data : http://java.sun.com/j2se/1.4.2/docs/api/java/util/GregorianCalendar.html Upvote 0 Downvote
System.currentTimeMillis() returns the number of milliseconds that have passed since January 1st, 1970. You may also want to look at the GregorianCalender class and SimpleDateFormat class. This link has an example of getting date data : http://java.sun.com/j2se/1.4.2/docs/api/java/util/GregorianCalendar.html