Android Date to String Convert getStringFromDate(Date date)

Here you can find the source of getStringFromDate(Date date)

Description

get String From Date, "EEE MMM dd HH:mm:ss ZZZZZ yyyy"

Declaration

public static String getStringFromDate(Date date) 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
    public static SimpleDateFormat sf = new SimpleDateFormat(
            "EEE MMM dd HH:mm:ss ZZZZZ yyyy");

    public static String getStringFromDate(Date date) {
        return sf.format(date);
    }//w  w  w.j a  v a  2s . c o  m
}

Related

  1. getHourInFloat(Date date)
  2. getLongDateStr(Date date)
  3. getLongFormat(Date date)
  4. getShortDateTimeString(Date date)
  5. getShortFormat(Date date)
  6. javaDateToIso8601(Date date)
  7. javaDateToTimeSpan(final Date date)
  8. toGMTDate(Date localDate)
  9. toString(Date date)