Here you can find the source of getCurrentDateAllformated()
public static String getCurrentDateAllformated()
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; public class Main { public static String getCurrentDateAllformated() { Locale loc = new Locale("zh", "CN"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", loc); return sdf.format(new Date()); }/* www . j av a2 s .c o m*/ }