Android Date Format getFormatShortTime(Date date)

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

Description

get Format Short Time

Declaration

public static String getFormatShortTime(Date date) 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static String getFormatShortTime(Date date) {
        return getFormatDateTime(date, "yyyy-MM-dd");
    }//from   w  ww.j a v a  2  s  .  c om

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

Related

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