Here you can find the source of convertDateToStringUI(Date data)
public static String convertDateToStringUI(Date data)
//package com.java2s; //License from project: Open Source License import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String convertDateToStringUI(Date data) { if (data == null) return null; String date = null;/* w w w . j a v a 2s . c om*/ try { DateFormat formatter = new SimpleDateFormat("dd/MM/yyyy"); date = formatter.format(data); } catch (Exception e) { System.err.println(e.getMessage()); } return date; } }