Java Date Convert convertInt2Date(int date)

Here you can find the source of convertInt2Date(int date)

Description

convert Int Date

License

Apache License

Declaration

public static Date convertInt2Date(int date) 

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 convertInt2Date(int date) {
        Long x = Long.valueOf(date) * 1000;
        Calendar c = Calendar.getInstance();
        c.setTimeInMillis(x);/*  w  w w  .j a va  2  s.  c  om*/
        return c.getTime();
    }
}

Related

  1. convertDateToWindowsTime(Date javaDate)
  2. convertDateValueToMillis(TimeZone tz, long dateValue)
  3. convertDoubleTimeToDate(Number d)
  4. convertFromFileman(String date)
  5. convertInputDateToString(Date inputDate)
  6. convertIntToDate(final int iDate)
  7. convertIntToDate(final int iDate, final StringBuilder verbatimDate)
  8. convertLocalDateToUTCDate(Date localDate)
  9. convertLocalToGMT(int[] dateTime)