Java Date Now getCurrentDay()

Here you can find the source of getCurrentDay()

Description

get Current Day

License

Open Source License

Declaration

public static String getCurrentDay() 

Method Source Code


//package com.java2s;
import java.text.*;

public class Main {
    public static String getCurrentDay() {
        java.util.Date NowDate = new java.util.Date();

        SimpleDateFormat formatter = new SimpleDateFormat("dd");
        return formatter.format(NowDate);
    }/*from   w  ww . j  a  v  a  2 s. co  m*/
}

Related

  1. getCurrentDateTimeString()
  2. getCurrentDateTimeString(String returnFormat)
  3. getCurrentDateTimeStringValue()
  4. getCurrentDateToString(String pattern)
  5. getCurrentDateWithDot()
  6. getCurrentDay()
  7. getCurrentDay()
  8. getCurrentDay()
  9. getCurrentDay()