Here you can find the source of getCurrentDate()
public static Date getCurrentDate()
//package com.java2s; import java.util.Date; public class Main { public static Date getCurrentDate() { return new Date(System.currentTimeMillis()); }/*from w w w . j a va 2s . co m*/ }