Here you can find the source of getToday()
public static Date getToday()
//package com.java2s; //License from project: Apache License import java.util.Calendar; import java.util.Date; import java.util.TimeZone; public class Main { public static final String APPLICATION_TIME_ZONE = "Europe/London"; public static Date getToday() { Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(APPLICATION_TIME_ZONE)); cal.set(Calendar.HOUR_OF_DAY, 0); cal.set(Calendar.MINUTE, 0); cal.set(Calendar.SECOND, 0); cal.set(Calendar.MILLISECOND, 0); return cal.getTime(); }// ww w .j a v a 2 s . c o m }