Here you can find the source of toDateTimeString(java.util.Date inDate)
Parameter | Description |
---|---|
inDate | Description of the Parameter |
public static String toDateTimeString(java.util.Date inDate)
//package com.java2s; //License from project: Open Source License public class Main { /**// w w w. j a v a 2s . c o m * Description of the Method * * @param inDate Description of Parameter * @return Description of the Returned Value */ public static String toDateTimeString(java.sql.Timestamp inDate) { try { return java.text.DateFormat.getDateTimeInstance(java.text.DateFormat.SHORT, java.text.DateFormat.LONG) .format(inDate); } catch (NullPointerException e) { } return ""; } /** * Description of the Method * * @param inDate Description of the Parameter * @return Description of the Return Value */ public static String toDateTimeString(java.util.Date inDate) { try { return java.text.DateFormat.getDateTimeInstance(java.text.DateFormat.SHORT, java.text.DateFormat.LONG) .format(inDate); } catch (NullPointerException e) { } return ""; } }