Java Day getDateYYMMDD()

Here you can find the source of getDateYYMMDD()

Description

Renvoie la date courante sous le format "yyMMdd"

License

Open Source License

Return

date au format YYMMDD

Declaration

public static String getDateYYMMDD() 

Method Source Code

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

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    /**//from  w  ww.j a  v a  2s  . c o m
     * Renvoie la date courante sous le format "yyMMdd"
     * 
     * @return date au format YYMMDD
     */
    public static String getDateYYMMDD() {
        SimpleDateFormat formatter = new SimpleDateFormat("yyMMdd");
        Date currentTime = new Date();
        String date = formatter.format(currentTime);

        return date;
    }
}

Related

  1. daysOfnumbe(Date sDate, int number)
  2. daySub(Date fDate, Date oDate)
  3. daysWeekName(boolean shortName, Locale locale)
  4. dayToMilliSeconds(String day, String timeZone)
  5. dayToUTCSeconds(String day)
  6. getDateYYMMDD(java.util.Date date)
  7. getDay(Date date)
  8. getDay(Date date)
  9. getDay(Date date)