Java Now nowDate()

Here you can find the source of nowDate()

Description

now Date

License

Open Source License

Declaration

public static String nowDate() 

Method Source Code

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

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public final static String DEFAULT_YMD_FORMAT = "yyyy-MM-dd";

    public static String nowDate() {
        SimpleDateFormat sdf = new SimpleDateFormat(DEFAULT_YMD_FORMAT);
        return sdf.format(new Date());
    }/*from   ww w. j a v  a2  s . c o m*/
}

Related

  1. now_TimeZone_BY()
  2. nowAs14CharString()
  3. nowAsAnsiDate()
  4. nowAsString()
  5. nowAsXSDDateTimeString()
  6. nowDate(final String formatter)
  7. nowDate(String strFormat)
  8. nowDateString()
  9. nowDateString()