Here you can find the source of getDateEN()
public static String getDateEN()
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String getDateEN() { SimpleDateFormat format1 = new SimpleDateFormat( "yyyy-MM-dd HH:mm:ss"); String date1 = format1.format(new Date(System.currentTimeMillis())); return date1; }/* w w w .j ava 2 s.c om*/ }