Here you can find the source of timestampToStringFF(Timestamp date)
Parameter | Description |
---|---|
date | Timestamp |
public static String timestampToStringFF(Timestamp date)
//package com.java2s; /*/*from w w w . j a va 2 s .c o m*/ * Copyright (C) 2010 Viettel Telecom. All rights reserved. * VIETTEL PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ import java.sql.Timestamp; import java.text.SimpleDateFormat; public class Main { /** * [timestampToStringFF function.].<br> * [Detail description of method.] * * @param date Timestamp * @return String */ public static String timestampToStringFF(Timestamp date) { if (date != null) { SimpleDateFormat dbDateTimeString = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); return dbDateTimeString.format(date); } return ""; } }