Java Date to String date2StringMD(Date date)

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

Description

date String MD

License

Apache License

Declaration

public static String date2StringMD(Date date) 

Method Source Code

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

import java.text.DateFormat;

import java.text.SimpleDateFormat;
import java.util.*;

public class Main {

    public static String date2StringMD(Date date) {

        DateFormat format1 = new SimpleDateFormat("MMdd");
        return format1.format(date);

    }/*w w  w  .  j a va  2s  .c om*/
}

Related

  1. date2String(java.util.Date date, String pattern)
  2. date2String(String formater, Date aDate)
  3. date2String(String pattern, Date date)
  4. date2String2(Date date)
  5. date2StringISO(Date date)
  6. date2StringPattern(Date value, String pattern)
  7. Date2StringSec(Date date)
  8. datetime(Date date)
  9. dateTime2String(Date dateTime, DateFormat dateFormat)