Here you can find the source of getTodayDate()
public static Date getTodayDate()
//package com.java2s; //License from project: Apache License import java.util.Date; public class Main { public static Date getTodayDate() { long date = System.currentTimeMillis(); java.sql.Date result = new java.sql.Date(date); return result; }//from ww w . java2 s. c o m }