Here you can find the source of toString(Long datetime)
Parameter | Description |
---|---|
datetime | the actual date and time in milliseconds |
public static String toString(Long datetime)
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; public class Main { /**/*from ww w.j av a 2 s . c o m*/ * @param datetime the actual date and time in milliseconds * @return The String representation in format yyyyMMddHHmmss */ public static String toString(Long datetime) { String result = new SimpleDateFormat("yyyyMMddHHmmss") .format(new Date(datetime)); return result; } }