Here you can find the source of getCurrentFormatedDate()
public static String getCurrentFormatedDate()
//package com.java2s; import java.util.Date; import android.text.format.DateFormat; public class Main { private static String dateFormatString = "dd/MM/yyyy"; public static String getCurrentFormatedDate() { return formatDate(new Date()); }// w ww . j a v a 2s . com public static String formatDate(final Date date) { return DateFormat.format(dateFormatString, date).toString(); } }