Here you can find the source of currentDate()
public static Date currentDate()
//package com.java2s; //License from project: Apache License import java.util.Calendar; import java.util.Date; public class Main { public static Date currentDate() { return Calendar.getInstance().getTime(); }// www . j av a 2s . c o m }