Android Date Current Get getCurrentDate()

Here you can find the source of getCurrentDate()

Description

get Current Date

License

Apache License

Declaration

public static String getCurrentDate() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static String getCurrentDate() {
        return getFormatDateTime(new Date(), "yyyy-MM-dd");
    }//  w  w w  . jav  a 2s .c o m

    public static String getFormatDateTime(Date date, String format) {
        SimpleDateFormat sdf = new SimpleDateFormat(format);
        return sdf.format(date);
    }
}

Related

  1. getCurrentDate()
  2. getCurrentDateStamp()
  3. getCurrentDate()
  4. getCurrentDate()
  5. getCurrentDateline()
  6. getCurrentDate()
  7. getCurrentDateJSONString()