Here you can find the source of getLongDateCurr()
public static String getLongDateCurr()
//package com.java2s; //License from project: Open Source License import java.util.Date; import java.util.TimeZone; import java.text.DateFormat; import java.text.SimpleDateFormat; public class Main { public static String getLongDateCurr() { DateFormat dateFormat = new SimpleDateFormat("MM/dd/yy HH:mm"); Date date = new Date(); dateFormat.setTimeZone(TimeZone.getTimeZone("GMT")); return dateFormat.format(date); }// w w w.j a v a 2 s . c o m }