Android Day Get 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;

import java.util.Date;

public class Main {
    public static String getCurrentDay() {
        return getFormatCurrentTime("dd");
    }//w  w w .  j  av a 2  s  .  co  m

    public static String getFormatCurrentTime(String format) {
        return getFormatDateTime(new Date(), format);
    }

    public static String getFormatDateTime(Date date, String format) {
        SimpleDateFormat sdf = new SimpleDateFormat(format);
        return sdf.format(date);
    }
}

Related

  1. lastDay(Date date)
  2. firstDay(Date date)
  3. getDay(long dateTimeMillis)
  4. getDaySelect(String selectName, String value, boolean hasBlank)
  5. getDaySelect(String selectName, String value, boolean hasBlank, String js)
  6. getSmartDateString(long time, String extString, String zeroDayString)
  7. getWeatherDateStr(int day)
  8. getArrayDiffDays(String startDate, String endDate)
  9. getIndexDay(Date origin, int index)