Here you can find the source of getCurrentDateStart()
public static Date getCurrentDateStart()
//package com.java2s; import java.util.*; public class Main { public static Date getCurrentDateStart() { Calendar calendar = Calendar.getInstance(); calendar.set(Calendar.HOUR_OF_DAY, 0); calendar.set(Calendar.MINUTE, 0); calendar.set(Calendar.SECOND, 0); return calendar.getTime(); }/*from www. j av a 2s . co m*/ public String getTime() { java.sql.Time ent = new java.sql.Time(System.currentTimeMillis()); return ent.toString(); } }