|
@@ -517,5 +517,10 @@ public class DateUtil {
|
|
|
public static Date convertTimestampToDate(long timestamp) {
|
|
|
return new Date(timestamp);
|
|
|
}
|
|
|
-
|
|
|
+ public static long convertToTimestamp(Date localDate) {
|
|
|
+ if (Checker.isNone(localDate)){
|
|
|
+ return 0L;
|
|
|
+ }
|
|
|
+ return localDate.getTime();
|
|
|
+ }
|
|
|
}
|