Here you can find the source of getDateTime(Timestamp argRenDt)
Parameter | Description |
---|---|
argRenDt | a parameter |
public static String getDateTime(Timestamp argRenDt)
//package com.java2s; import java.sql.Timestamp; import java.text.SimpleDateFormat; public class Main { /**/* w w w. j a v a 2 s. c o m*/ * This method converts timestamp to the specified datetime format * * @param argRenDt * @return */ public static String getDateTime(Timestamp argRenDt) { String strDate = null; if (argRenDt != null) { SimpleDateFormat dtFormat = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss"); strDate = dtFormat.format(argRenDt); } return strDate; } }