watana disse:Boas,
Estou um pouco detreinado do Java, mas penso que seja isto:
import java.util.Date;
Date hoje = new Date();
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Date.htmlUnfortunately, the API for these functions was not amenable to internationalization. As of JDK 1.1, the Calendar class should be used to convert between dates and time fields and the DateFormat class should be used to format and parse date strings. The corresponding methods in Date are deprecated.