Java Year Format getYYMMDD()

Here you can find the source of getYYMMDD()

Description

get YYMMDD

License

Open Source License

Declaration

public static String getYYMMDD() 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {

    public static String getYYMMDD() {
        Date d = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat("yy-MM-dd");
        return sdf.format(d);
    }/*from  w ww.  java  2s  .  co  m*/
}

Related

  1. getStringFormatYYYYMMddWithHyphens(Date aDate)
  2. getTimeByYMD()
  3. getYear(SimpleDateFormat df, String dateStr)
  4. getYear(String date, String dateformat)
  5. getYear(String pFormattedDate)
  6. getYYMMDD(int i)
  7. getYYYY()
  8. getYYYY(java.util.Date date)
  9. getyyyy_MM_dd(Date date)