Here you can find the source of convertDayToString(Date aDate)
public static String convertDayToString(Date aDate)
//package com.java2s; //License from project: Open Source License import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static final String HOMI_TIME_FORMAT = "HH:mm"; public static String convertDayToString(Date aDate) { return getDateTime(HOMI_TIME_FORMAT, aDate); }// w w w . j ava 2 s . c o m public static String getDateTime(String aMask, Date aDate) { String returnValue = ""; if (aDate != null) { SimpleDateFormat df = new SimpleDateFormat(aMask); returnValue = df.format(aDate); } return (returnValue); } }