Java Date Format dateFormat(Date date)

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

Description

date Format

License

Open Source License

Declaration

public static String dateFormat(Date date) 

Method Source Code


//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {

    public static String dateFormat(Date date) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        return sdf.format(date);
    }/*from   w  w  w .j  a  v a 2 s .co  m*/
}

Related

  1. convertDayToString(Date aDate)
  2. dateFmtToString(Date date, SimpleDateFormat fmt)
  3. dateFormat(Date d, String formatStr)
  4. dateFormat(Date date)
  5. dateFormat(Date date)
  6. dateFormat(Date date)
  7. dateFormat(Date date)
  8. dateFormat(Date date, String format)
  9. dateFormat(Date date, String format)