Android Today Get today()

Here you can find the source of today()

Description

today

Declaration

public static String today() 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class Main {
    private static SimpleDateFormat df = new SimpleDateFormat(
            "dd-MM-yyyy HH:mm");

    public static String today() {
        return getAsString(Calendar.getInstance());
    }/*  w ww  . j  av a2s. c  om*/

    public static String getAsString(Calendar date) {
        return df.format(date.getTime());
    }
}

Related

  1. isToday(Calendar today, Calendar date)
  2. isToday(Calendar date)
  3. getNbDaysToDate(Calendar from, int toYear, int toMonth, int toDay)
  4. isToday(long time)
  5. today()
  6. isToday(long lTime)
  7. getToday()
  8. getToday00Time()
  9. getCurDateTimeinString()