Here you can find the source of parseToStringDate(long ms)
public static String parseToStringDate(long ms)
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static final String FROMAT_2 = "yyyyMMdd"; public static String parseToStringDate(long ms) { SimpleDateFormat format = new SimpleDateFormat(FROMAT_2); String time = format.format(new Date(ms)); return time; }/*ww w.j a va 2s. co m*/ }