Java Date Create createDate(final int aYear, final int aMonth, final int aDate, final int aHour, final int aMinute, final int aSecond)

Here you can find the source of createDate(final int aYear, final int aMonth, final int aDate, final int aHour, final int aMinute, final int aSecond)

Description

create Date

License

Apache License

Declaration

public static Date createDate(final int aYear, final int aMonth, final int aDate, final int aHour,
        final int aMinute, final int aSecond) 

Method Source Code

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

import java.util.Calendar;
import java.util.Date;

public class Main {

    public static Date createDate(final int aYear, final int aMonth, final int aDate, final int aHour,
            final int aMinute, final int aSecond) {
        Calendar c = Calendar.getInstance();
        c.set(aYear, aMonth, aDate, aHour, aMinute, aSecond);
        return c.getTime();
    }//from   www .ja v  a2  s  .  c o  m
}

Related

  1. buildDateTimeUTC(Calendar cal)
  2. castToDate(Object value)
  3. create(int year, int month, int date, TimeZone timeZone)
  4. createDate(final Date date)
  5. createDate(final Date date)
  6. createDate(final int day, final int month, final int year)
  7. createDate(final int month, final int day, final int year)
  8. createDate(final int year, final int month, final int day, final int hour, final int minute, final int second, final int millisecond)
  9. createDate(final int yyyy, final int month, final int day)