Here you can find the source of toDateString(long lval)
Parameter | Description |
---|---|
lval | The long . |
public static String toDateString(long lval)
//package com.java2s; import java.text.DateFormat; import java.util.Date; public class Main { private static DateFormat dateFormat; /**/*from ww w. ja va2s. c o m*/ * Returns the string for the given {@code long} as a date. This is used by * {@link #displayString(Object,boolean)} when it guesses that a {@code * long} is a date. * * @param lval The {@code long}. * * @see #toString(Date) */ public static String toDateString(long lval) { return dateFormat.format(new Date(lval)); } }