Java Date Now getCurrentDay()

Here you can find the source of getCurrentDay()

Description

get Current Day

License

Apache License

Declaration

public static String getCurrentDay() 

Method Source Code

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

import java.text.SimpleDateFormat;

public class Main {

    public static String getCurrentDay() {
        return getDefaultDateFormat().format(java.util.Calendar.getInstance().getTime());
    }/*from w w  w  .jav a  2s .  c  o  m*/

    public static SimpleDateFormat getDefaultDateFormat() {
        return new SimpleDateFormat("yyyyMMdd");
    }
}

Related

  1. getCurrentDay()
  2. getCurrentDay()
  3. getCurrentDay()
  4. getCurrentDay()
  5. getCurrentDay()
  6. getCurrentDay(int model)
  7. getCurrentDay(String pattern)
  8. getCurrentDayBegin()
  9. getCurrentDayInyyyyMMdd()