Java Date Format As formatDateDay(final Date date)

Here you can find the source of formatDateDay(final Date date)

Description

format Date Day

License

Apache License

Declaration

public static String formatDateDay(final Date date) 

Method Source Code

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

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

public class Main {
    public static String formatDateDay(final long t) {
        return formatDateDay(new Date(t));
    }/*from  w ww  .  j av  a 2s . c  o m*/

    public static String formatDateDay(final Date date) {
        return new SimpleDateFormat("yyyy-MM-dd").format(date);
    }
}

Related

  1. formatDateBdChar(Date birthdate)
  2. formatDateByDefault(Date date)
  3. formatDateByYYYYMMDDHHmmss(Date date)
  4. formatDateCkan(Date date)
  5. formatDateDashes(Date oDate)
  6. formatDateForCompleteInfo(Date date)
  7. formatDateForGMT(Date moonDate)
  8. formatDateForLogFileName(Date date)
  9. formatDateForTAP(Date date)