Java tutorial
//package com.java2s; //License from project: Open Source License import java.util.Calendar; import java.util.Date; public class Main { public static Date formatStartDateForObject(String string) { Calendar calendar = Calendar.getInstance(); calendar.setTimeInMillis(Long.valueOf(string)); return calendar.getTime(); } }