Java Year Month newDate(int year, int month, int day)

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

Description

new Date

License

Open Source License

Declaration

@SuppressWarnings("deprecation")
public static final Date newDate(int year, int month, int day) 

Method Source Code

//package com.java2s;

import java.util.*;

public class Main {

    @SuppressWarnings("deprecation")
    public static final Date newDate(int year, int month, int day) {
        return new Date(year - 1900, month - 1, day);
    }//from   ww w.  java  2  s. c  o  m
}

Related

  1. getYearMonthStr(Date parseDate)
  2. getYearMonthString(Date date)
  3. lastDay(int year, int month)
  4. makeDate(int day, int month, int year, int hour, int min, int sec)
  5. monthBeginDate(int year, int month)
  6. normalizeShortDate(String year, String month, String day)
  7. parseMonthAndYearStringOrNull(String dateString)
  8. sameYearAndMonth(Date d1, Date d2)
  9. toDateProgression(int year, int month, int day, String seed, int pedometer)