Android Date Format toStringFR(Date date)

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

Description

to String FR as format "dd/MM/yyyy"

License

Open Source License

Declaration

public static String toStringFR(Date date) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static final String DATE_FORMAT_dd_MM_yyyy = "dd/MM/yyyy";

    public static String toStringFR(Date date) {
        return toString(date, DATE_FORMAT_dd_MM_yyyy);
    }//ww  w.  j  ava 2  s .  c  om

    public static String toString(Date date, String format) {
        SimpleDateFormat outputFormat = new SimpleDateFormat(format);
        return outputFormat.format(date);
    }
}

Related

  1. toDateString(Date value)
  2. toDateTimeString(Date value)
  3. toRelativeDateString(Date value)
  4. toString(Date date, String format)
  5. toString(Date value, String format)
  6. toStringUS(Date date)
  7. toTimeString(Date value)
  8. format(Date date)
  9. format(Date date, String pattern)