Android Date to String Convert dateTimeToString(final Date date)

Here you can find the source of dateTimeToString(final Date date)

Description

date Time To String

Declaration

public static String dateTimeToString(final Date date) 

Method Source Code

//package com.java2s;
import java.text.DateFormat;

import java.util.Date;

public class Main {
    public static String dateTimeToString(final Date date) {
        if (date == null)
            return "Never";
        return DateFormat.getDateTimeInstance().format(date);
    }/*from  w w  w.  j  a v  a 2 s  .co m*/
}

Related

  1. dateToString(Date date)
  2. dateToString(String format, String date)
  3. dateToString(String format, Date date)
  4. dateToString(Date time)
  5. getFriendlyLocalDateTime(Date date)
  6. dateToString(Date date)
  7. datesToString(final Date start, final int duration)
  8. datesToString(final Date start, final int duration)
  9. convertDateToString(Date date)