public static String convertMsToDate ( long millis , String dateFormatPattern ) { DateFormat dateFormat = new SimpleDateFormat ( dateFormatPattern ) ; return dateFormat . format ( new Date ( millis ) ) ; }
Converts a millisecond number to a formatted date String .