Java Time Now getNowTime()

Here you can find the source of getNowTime()

Description

get Now Time

License

Open Source License

Declaration

public static String getNowTime() 

Method Source Code

//package com.java2s;

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

public class Main {

    public static String getNowTime() {
        Date date = new Date();
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd kk:mm:ss");
        String time = simpleDateFormat.format(date);
        return time;
    }/*  w w w  .j av a2 s  .c om*/
}

Related

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