Here you can find the source of timeStr(Date _Date)
public static String timeStr(Date _Date)
//package com.java2s; //License from project: Open Source License import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; public class Main { public static String timeStr(Date _Date) { if (_Date == null) return ""; SimpleDateFormat _SimpleDateFormat = new SimpleDateFormat("yyyy:MM:dd HH:mm:ss", Locale.SIMPLIFIED_CHINESE); return _SimpleDateFormat.format(_Date); }/* w ww .j a v a2 s .c o m*/ }