Java Today getTodayStr()

Here you can find the source of getTodayStr()

Description

get Today Str

License

Open Source License

Declaration

public static String getTodayStr() 

Method Source Code


//package com.java2s;

import java.text.DateFormat;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {

    public static String getTodayStr() {
        DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
        String todayAsString = df.format(new Date());
        return todayAsString;
    }//from  w w  w. java  2s  . c  o m
}

Related

  1. getTodayNight()
  2. getTodaysDate()
  3. getTodaysDate(String dateFormat)
  4. getTodayStart()
  5. getTodayStr()
  6. getTodayString()
  7. getTodayString()
  8. getTodayString()
  9. getTodayString()