Here you can find the source of formatddMMyyyy(Date date)
public static String formatddMMyyyy(Date date)
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.*; public class Main { public static SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); public static String formatddMMyyyy(Date date) { SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy"); return format.format(date); }/*from ww w . ja va2 s . c o m*/ public static String format(Date data) { return sdf.format(data); } }