Android Date Format getFormatDateTime(Date date, String format)

Here you can find the source of getFormatDateTime(Date date, String format)

Description

get Format Date Time

Declaration

public static String getFormatDateTime(Date date, String format) 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static String getFormatDateTime(Date date, String format) {
        SimpleDateFormat sdf = new SimpleDateFormat(format);
        return sdf.format(date);
    }/*from   w w w. j  av  a2  s  .c o m*/
}

Related

  1. getFormatDate(String format)
  2. getFormatDate(String format)
  3. getFormatDateAdd(Date date, int amount, String format)
  4. getFormatDateAdd(Date date, int amount, String format)
  5. getFormatDateTime(Date date, String format)
  6. getFormatDateTommorrow(String sourceDate, String format)
  7. getFormatDateTommorrow(String sourceDate, String format)
  8. getFormatShortTime(Date date)
  9. getFormatTime(Date date)