Here you can find the source of getCurrentDate()
@NotNull public static Date getCurrentDate()
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; public class Main{ /**/* ww w. j av a2 s . c om*/ * Get the current {@link Date}. */ @NotNull public static Date getCurrentDate() { return Calendar.getInstance().getTime(); } }