public static String formatDate(String time, String format) {