Java Today getTodayYMD()

Here you can find the source of getTodayYMD()

Description

get Today YMD

License

Apache License

Declaration

public static String getTodayYMD() throws ParseException 

Method Source Code

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

import java.text.ParseException;
import java.text.SimpleDateFormat;

import java.util.Date;

import java.util.Locale;

public class Main {

    public static String getTodayYMD() throws ParseException {
        Date date = new Date();
        SimpleDateFormat formatter;
        String pattern = "yyyyMMdd";
        formatter = new SimpleDateFormat(pattern, new Locale("ko", "KOREA"));

        return formatter.format(date);
    }//ww  w.  ja v a  2 s . co  m
}

Related

  1. getTodayString()
  2. getTodayString()
  3. getTodayTime()
  4. getTodayTimeForDB()
  5. getTodayWithTime(final String iTime)
  6. getTodayYmd()
  7. getTodayZero()
  8. getTodayZero()
  9. getTodayZeroHour()