Android Date Format format(Date d, String dateFormat)

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

Description

format

Declaration

public static String format(Date d, String dateFormat) 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
    public static String format(Date d, String dateFormat) {
        final SimpleDateFormat sdf = new SimpleDateFormat(dateFormat);
        return sdf.format(d);
    }//from   w w w  .java 2 s  . c o  m
}

Related

  1. formatDate(Date date)
  2. formatDate(Date date)
  3. formatDate(Date date)
  4. formatDate(Date date, String pattern)
  5. formatDate(Date date, String pattern, Locale locale)
  6. getShortFriendlyDate(Date dt)
  7. getFormatDateString(String format)
  8. getFormatDateString(String format, java.util.Date date)
  9. getFormatDateTime(String formatString, Date d)