Here you can find the source of checkDate(Date date)
Parameter | Description |
---|---|
date | a parameter |
public static String checkDate(Date date)
//package com.java2s; // %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt import java.text.DateFormat; import java.util.Date; public class Main { /**/* w w w. j a v a 2 s . co m*/ * Dates handler. * * @param date * @return */ public static String checkDate(Date date) { if (date == null) { return ""; //$NON-NLS-1$ } DateFormat formatter = DateFormat.getDateTimeInstance(); return formatter.format(date); } }