Android Date to String Convert toSimpleDateFormattedString(Date date)

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

Description

to Simple Date Formatted String

Declaration

public static String toSimpleDateFormattedString(Date date) 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static String toSimpleDateFormattedString(Date date) {
        try {/* ww w .  ja  va 2  s .  com*/
            SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
            return sdf.format(date);
        } catch (Exception e) {
        }

        return null;
    }
}

Related

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