Android Date Get getDate(int year, int month)

Here you can find the source of getDate(int year, int month)

Description

get Date

Declaration

public static String getDate(int year, int month) 

Method Source Code

//package com.java2s;

public class Main {

    public static String getDate(int year, int month) {
        String date = null;//  w ww  . ja v a 2 s.c  o  m
        String a = String.valueOf(year);
        String b = String.valueOf(month);
        if (month > 9) {
            date = a + b;
        } else {
            date = a + "0" + b;
        }
        return date;
    }
}

Related

  1. getYear(Date date)
  2. getDateObj()
  3. getDate(int year, int month, int date, int hourOfDay, int minute, int second)
  4. getCurrentDateYearMonthDateHourMinuteSecond()
  5. createDate(final int month, final int day, final int year)
  6. getDateFromString(String dateString)
  7. getCurrentlyDate()
  8. getDate(int day, int month, int year)