Java Today getTodaysDate()

Here you can find the source of getTodaysDate()

Description

get Todays Date

License

Open Source License

Declaration

public static String getTodaysDate() 

Method Source Code


//package com.java2s;
import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static String getTodaysDate() {
        Date date = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat("YYYYMMdd-HHmmss");
        return sdf.format(date);
    }/*from  w  w w.  j  a va 2 s.co  m*/
}

Related

  1. getTodayLastUpdateTimeFormat()
  2. getTodayLimit()
  3. getTodayMidnight()
  4. getTodayMin()
  5. getTodayNight()
  6. getTodaysDate(String dateFormat)
  7. getTodayStart()
  8. getTodayStr()
  9. getTodayStr()