Java tutorial
//package com.java2s; import java.util.Date; public class Main { /** * * @param milliseconds * @return */ public static Date GetDateByTimeMills(long milliseconds) { Date date = new Date(); date.setTime(milliseconds); return date; } }