Java Time Now getNow()

Here you can find the source of getNow()

Description

get Now

License

Apache License

Declaration

public static String getNow() 

Method Source Code

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

import java.text.SimpleDateFormat;

public class Main {
    public static String getNow() {
        return getISOFormat(new java.util.Date());
    }/*from   w  w  w  .  j  av  a2 s. c  o  m*/

    public static String getISOFormat(java.util.Date date) {
        return new SimpleDateFormat("yyyy-mm-dd hh:mm:ss").format(date);
    }
}

Related

  1. getNow()
  2. getNow()
  3. getNow()
  4. getNow()
  5. getNow()
  6. getNow()
  7. getNow()
  8. getNow()
  9. getNow()