Java Date Format formatD(Date date)

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

Description

format D

License

LGPL

Declaration

public static String formatD(Date date) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static final String FORMAT_STYLE_D = "MM-dd HH:mm";

    public static String formatD(Date date) {
        SimpleDateFormat sdf = new SimpleDateFormat(FORMAT_STYLE_D);
        return sdf.format(date);
    }/*from w ww .  j av a2s  .  c  o  m*/
}

Related

  1. DateTimeFormat(final Date date)
  2. dateTimeFormatterDate(Date date)
  3. dateTimeToMillis(String dateTime, String format)
  4. dateTimeToStr(Date date, String format)
  5. dateTimeToZuluFormat(DateTime dateTime)
  6. formatDashedDateDDMMYYYY(Date date)
  7. formatDate(ArrayList list)
  8. formatDate(Date _date)
  9. formatDate(Date aDate)