Here you can find the source of formatDateForCERMe(Date date, boolean includeTime)
Parameter | Description |
---|---|
date | a parameter |
includeTime | a parameter |
public static String formatDateForCERMe(Date date, boolean includeTime)
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; public class Main { /**//from w w w . ja v a 2 s. com * Method formatDateForCERMe. * * @param date * @param includeTime * @return */ public static String formatDateForCERMe(Date date, boolean includeTime) { if (date != null) { if (includeTime) return new SimpleDateFormat("MM-dd-yyyy hh:mm:ss a").format(date); else return new SimpleDateFormat("MM-dd-yyyy").format(date); } else return null; } }