Java Now nowDateToString()

Here you can find the source of nowDateToString()

Description

now Date To String

License

Apache License

Declaration

public static String nowDateToString() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {

    public static String nowDateToString() {
        return new SimpleDateFormat("yyyy-MM-dd").format(new Date());
    }/*w w w  . ja v a2 s.c  o m*/
}

Related

  1. nowDate(final String formatter)
  2. nowDate(String strFormat)
  3. nowDateString()
  4. nowDateString()
  5. nowDateString(String format)
  6. nowDT()
  7. nowDT()
  8. nowFile()
  9. nowFormat(String format)