Java Date to Timestamp getAuditTimestamp(Date date)

Here you can find the source of getAuditTimestamp(Date date)

Description

get Audit Timestamp

License

Open Source License

Declaration

public static String getAuditTimestamp(Date date) 

Method Source Code

//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;
    }
}

Related

  1. dateToTimestamp(java.util.Date d)
  2. dateToTimeStamp(java.util.Date date)
  3. dateToTimestamp(java.util.Date date)
  4. escapeAsTimestamp(Date date)
  5. getAsTimestampOrEmptyString(Date date)
  6. getDetailedTimeStamp(Date date)
  7. getDisplayableTimeStamp(Date timeStamp)
  8. getDisplayTimeStamp(Date date)
  9. getJnlpTimestamp(Date date)