Java tutorial
//package com.java2s; import android.text.format.DateFormat; import java.util.Calendar; import java.util.Locale; public class Main { public static String getPicName() { new DateFormat(); return DateFormat.format("yyyyMMddhhmmss", Calendar.getInstance(Locale.CHINA)) + ".png"; } }