Here you can find the source of dateToLong(Date date)
Parameter | Description |
---|---|
date | The given date. |
public static long dateToLong(Date date)
//package com.java2s; import java.util.*; public class Main { /**/*from w w w .ja v a 2 s.c o m*/ * Convert the date to a Long value. * @param date The given date. */ public static long dateToLong(Date date) { return date.getTime(); } }