Format Date to String in EEEEE dd MMMMM format - Android java.util

Android examples for java.util:Date Format

Description

Format Date to String in EEEEE dd MMMMM format

Demo Code

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);
    }

}

Related Tutorials