Here you can find the source of getNowDate()
public static String getNowDate()
//package com.java2s; //License from project: Apache License import java.text.DateFormat; import java.util.GregorianCalendar; import java.util.Locale; public class Main { /**/*from w w w .ja va2s . co m*/ * Gets the now date. * * @return the now date */ public static String getNowDate() { GregorianCalendar gcNow = new GregorianCalendar(); java.util.Date dNow = gcNow.getTime(); DateFormat df = DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.SIMPLIFIED_CHINESE); return df.format(dNow); } }