Here you can find the source of getUTCDate()
public static Date getUTCDate()
//package com.java2s; //License from project: Open Source License import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; import java.util.TimeZone; public class Main { public static Date getUTCDate() { Calendar c = new GregorianCalendar(TimeZone.getTimeZone("UTC")); return c.getTime(); }/*from w ww. ja v a 2 s . c om*/ }