Android Date Format getCurrentFormatedDate()

Here you can find the source of getCurrentFormatedDate()

Description

get Current Formated Date

Declaration

public static String getCurrentFormatedDate() 

Method Source Code

//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();
    }
}

Related

  1. getCurrentDate()
  2. getCurrentDateString(String dateFormat)
  3. getCurrentDateTime()
  4. getCurrentDay()
  5. getCurrentDayOfWeek()
  6. getCurrentMonth()
  7. getCurrentTime()
  8. getCurrentYear()
  9. getDateEN()