Java Time Now getNow()

Here you can find the source of getNow()

Description

get Now

License

Open Source License

Declaration


public static String getNow() 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {

    public static String getNow() {
        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd H:mm:ss");
        Date nowc = new Date();
        String pid = formatter.format(nowc);
        return pid;
    }// w  ww .  ja  v  a 2s  .c o  m
}

Related

  1. getCurTime()
  2. getCurTimeStr()
  3. getDBCurrentTime()
  4. getLogCurrentTime()
  5. getNow()
  6. getNow()
  7. getNow()
  8. getNow()
  9. getNow()