Here you can find the source of parse(Long date)
public static Date parse(Long date)
//package com.java2s; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class Main { private static final SimpleDateFormat DB_FORMAT = new SimpleDateFormat("yyyyMMddHHmmss"); public static Date parse(Long date) { try {/*from w w w. j a v a 2 s .c o m*/ return DB_FORMAT.parse(String.valueOf(date)); } catch (ParseException e) { return null; } } }