Java Date Format dateFormat(Date d, String formatStr)

Here you can find the source of dateFormat(Date d, String formatStr)

Description

date Format

License

Open Source License

Declaration

public static String dateFormat(Date d, String formatStr) 

Method Source Code


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

public class Main {

    public static String dateFormat(Date d, String formatStr) {
        return new java.text.SimpleDateFormat(formatStr).format(d);
    }/*from   w  ww  .ja v a2  s  .  c  o m*/
}

Related

  1. convertDateToText(Date date)
  2. convertDateToUTC(Date date)
  3. convertDateToXSDString(Date date)
  4. convertDayToString(Date aDate)
  5. dateFmtToString(Date date, SimpleDateFormat fmt)
  6. dateFormat(Date date)
  7. dateFormat(Date date)
  8. dateFormat(Date date)
  9. dateFormat(Date date)