Java Date Format dateFormat4yyyyMMdd()

Here you can find the source of dateFormat4yyyyMMdd()

Description

date Formatyyyy M Mdd

License

Apache License

Declaration

public static SimpleDateFormat dateFormat4yyyyMMdd() 

Method Source Code

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

import java.text.SimpleDateFormat;

public class Main {

    public static SimpleDateFormat dateFormat4yyyyMMdd() {
        return new SimpleDateFormat("yyyy-MM-dd");
    }/*from   w ww . ja  v a 2  s .  c o  m*/
}

Related

  1. dateFormat(String format, java.util.Date date)
  2. dateFormat(String format, java.util.Date date, String tz, Locale locale)
  3. dateFormat(String format, String defaultFormat)
  4. dateformat(String text, String format)
  5. dateFormat3(Date date)
  6. dateFormatCheck(String source)
  7. dateFormatCheck(String source, String format)
  8. dateformate(String reg, Date newdate)
  9. dateFormater(String dataStr, String dataFormat)