Java Now stringDate(Date now)

Here you can find the source of stringDate(Date now)

Description

string Date

License

Open Source License

Declaration

public static String stringDate(Date now) 

Method Source Code

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

import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
    public static String stringDate(Date now) {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return simpleDateFormat.format(now);
    }//from  ww w.j a  va 2 s . c o  m
}

Related

  1. nowString(String pattern)
  2. nowString(String pattern)
  3. nowTime(String formartStr)
  4. nowTime(String format)
  5. printNow()
  6. subNow()
  7. toStr2(Date now)
  8. toString(Date now)