Java Time Now getNowDateTime()

Here you can find the source of getNowDateTime()

Description

get Now Date Time

License

Open Source License

Declaration

public static Date getNowDateTime() 

Method Source Code

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

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

public class Main {
    public static Date getNowDateTime() {
        return Calendar.getInstance().getTime();
    }/*  w w w . j a v a 2  s. c o m*/

    public static String getTime(Date dt, String format) {
        SimpleDateFormat st = new SimpleDateFormat(format);
        return st.format(dt);
    }
}

Related

  1. getNow(final String format)
  2. getNow(String format)
  3. getNowAsNICSDate()
  4. getNowAsString()
  5. getNowDateTime()
  6. getNowDateTime()
  7. getNowDateTime()
  8. getNowDateTime(String strScheme)
  9. getNowDateTimeStrConcise()