Java Today getTodayDateInString()

Here you can find the source of getTodayDateInString()

Description

returns today's date in DDMMYY format in string

License

Open Source License

Declaration

public static String getTodayDateInString() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    /**/*w  ww  . j a  v a  2s.co  m*/
     * returns today's date in DDMMYY format in string
     */
    public static String getTodayDateInString() {
        String todaydate = new SimpleDateFormat("ddMMyy").format(new Date());
        return todaydate;
    }
}

Related

  1. getTodayAsSecond()
  2. getTodayDate()
  3. getTodayDate()
  4. getTodayDate()
  5. getTodayDateAsString()
  6. getTodayDbFormat()
  7. getTodayDisplayString()
  8. getTodayEnd()
  9. getTodayEnd()