Here you can find the source of getAuditTimestamp(Date date)
public static String getAuditTimestamp(Date date)
//package com.java2s; //License from project: Open Source License import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; public class Main { private static final DateFormat AUDIT_FORMAT = new SimpleDateFormat("dd.MM.yyyy HH:mm:ss"); public static String getAuditTimestamp(Date date) { String value = null;// w w w . j a v a2 s. co m if (date != null) { value = AUDIT_FORMAT.format(date); } return value; } }