Here you can find the source of toDate(long time)
Parameter | Description |
---|---|
time | a parameter |
public static String toDate(long time)
//package com.java2s; //License from project: LGPL import java.text.SimpleDateFormat; public class Main { private static final SimpleDateFormat formatDateTime = new SimpleDateFormat(); /**//from w w w .j ava2 s. co m * Convert friendly date time format * @param time * @return String datetime format */ public static String toDate(long time) { return formatDateTime.format(time); } }