Java Year Format yyyymmddFormat(Date date)

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

Description

yyyymmdd Format

License

Open Source License

Declaration

public static String yyyymmddFormat(Date date) 

Method Source Code

//package com.java2s;

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

public class Main {
    public static String yyyymmddFormat(Date date) {
        SimpleDateFormat yyyymmddFormat = new SimpleDateFormat("yyyy-MM-dd", Locale.ENGLISH);
        return yyyymmddFormat.format(date);
    }/*from  w  w  w .  j  a v  a 2  s .  c  om*/
}

Related

  1. toYYYYMMDD(Calendar cal)
  2. toYyyyMMddToDate(String date)
  3. unmarshalYYYYMMDD(String date)
  4. yyyyMMdd(Date date)
  5. yyyyMMdd(Date date)
  6. yyyyMMddFormatter()
  7. yyyyMMddHHmmss2date(String str)
  8. yyyyMMddStringToDate(String date)