Android examples for java.util:Date Format
Format Date to String in EEEEE dd MMMMM format
import android.util.Log; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.Locale; import java.util.TimeZone; public class Main{ /** The formatter for full text date format */ private static final DateFormat DATE_PATTERN_FULL_TEXT_FORMATTER = new SimpleDateFormat( "EEEEE dd MMMMM"); /**/*from w ww .j ava2s. c om*/ * Converts the Date object to the date string in the full text format */ public static final String getFullTextDateString(Date date) { return DATE_PATTERN_FULL_TEXT_FORMATTER.format(date); } }