Java Time Format getIntegerDateTime(Date date, String dateFormat)

Here you can find the source of getIntegerDateTime(Date date, String dateFormat)

Description

get Integer Date Time

License

Open Source License

Declaration

public static int getIntegerDateTime(Date date, String dateFormat) 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static int getIntegerDateTime(Date date, String dateFormat) {
        SimpleDateFormat sdf = new SimpleDateFormat(dateFormat);
        int dateTime = Integer.parseInt(sdf.format(date.getTime()));
        return dateTime;
    }/*w  ww  .jav  a 2 s. c om*/
}

Related

  1. getFormatTime(String format)
  2. getFormatTimeString(Date date, String pattern)
  3. getFullDateTimeFormat()
  4. getFullTime(String format, Date date)
  5. getGenerationTime(String format)
  6. getShowTime(Date date, String format)
  7. getStartTimeFormatter()
  8. getStrDateByFormat(Date time, String format)
  9. getStrDateTime()