Java Today getTodayYmd()

Here you can find the source of getTodayYmd()

Description

get Today Ymd

License

Open Source License

Declaration

public static String getTodayYmd() 

Method Source Code


//package com.java2s;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class Main {
    private static final String YYYYMMDD_FORMAT = "yyyy-MM-dd";

    public static String getTodayYmd() {
        Calendar c = Calendar.getInstance();
        return new SimpleDateFormat(YYYYMMDD_FORMAT).format(c.getTime());
    }//from  w  ww.j ava2s. c o m
}

Related

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