Android Date to String Convert convertDateToString(Date date)

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

Description

convert Date To String

Declaration

public static String convertDateToString(Date date) 

Method Source Code

//package com.java2s;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
    public static String convertDateToString(Date date) {
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MMM-dd");
        return df.format(date);
    }// w  w w .j  a v  a 2s .co m
}

Related

  1. getFriendlyLocalDateTime(Date date)
  2. dateTimeToString(final Date date)
  3. dateToString(Date date)
  4. datesToString(final Date start, final int duration)
  5. datesToString(final Date start, final int duration)
  6. toSimpleDateFormattedString(Date date)
  7. toStringFromDate(Date date)
  8. toUTCFormattedString(Date date)
  9. updateDate(DatePicker picker, Date date)