Android Today Get getTodaysDate()

Here you can find the source of getTodaysDate()

Description

get Todays Date

License

LGPL

Declaration

public static String getTodaysDate() 

Method Source Code

//package com.java2s;
/**/* ww w. java 2  s.co m*/
 * Copyright (c) 2013 Acrylic Goat Software
 * 
 * This software is subject to the provisions of the GNU Lesser General
 * Public License Version 3 (LGPL).  See LICENSE.txt for details.
 */

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class Main {
    public static String getTodaysDate() {
        DateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy",
                Locale.US);
        Date date = new Date();
        String today = dateFormat.format(date);

        return today;
    }
}

Related

  1. getToday()
  2. getToday00Time()
  3. getCurDateTimeinString()
  4. today()
  5. isToday(String sdate)
  6. isToday(long dateUtc)