Android Date to Long Convert getDateLong(Date date)

Here you can find the source of getDateLong(Date date)

Description

get Date Long

Declaration

public static long getDateLong(Date date) 

Method Source Code

//package com.java2s;

import java.util.Date;

public class Main {
    public static long getDateLong(Date date) {
        if (date == null) {
            return 0;
        } else {/*from  ww  w  . j a  v  a 2 s . co  m*/
            return date.getTime();
        }
    }
}

Related

  1. parseDateToLongString(String dateString)
  2. geLongFromString(final String date)
  3. getTime(String dateString)
  4. dosToJavaTime(long dosTime)
  5. dosToJavaTme(int dosTime)