Here you can find the source of normalizeDate(Date date, TimeZone timeZone)
public static Date normalizeDate(Date date, TimeZone timeZone)
//package com.java2s; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; import java.util.TimeZone; public class Main { public static Date normalizeDate(Date date, TimeZone timeZone) { Calendar calendar = new GregorianCalendar(timeZone); calendar.setTime(date);//from w w w . j a v a2s . c o m calendar.set(Calendar.AM_PM, Calendar.AM); calendar.set(Calendar.HOUR, 0); calendar.set(Calendar.MINUTE, 0); calendar.set(Calendar.SECOND, 0); calendar.set(Calendar.MILLISECOND, 0); return calendar.getTime(); } }