Java Date Now getCurrentDateTimeForShow()

Here you can find the source of getCurrentDateTimeForShow()

Description

get Current Date Time For Show

License

Open Source License

Declaration

public static String getCurrentDateTimeForShow() 

Method Source Code

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

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    private static SimpleDateFormat showDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    public static String getCurrentDateTimeForShow() {
        return showDateFormat.format(new Date());
    }/*from w  w  w  .  j  ava  2 s.  c  o m*/
}

Related

  1. getCurrentDateTime()
  2. getCurrentDateTime()
  3. getCurrentDateTime()
  4. getCurrentDateTime(String dateFormat)
  5. getCurrentDateTime(String format)
  6. getCurrentDateTimeISO8601()
  7. getCurrentDateTimeObj(String dateTime, String format)
  8. getCurrentDateTimeString()
  9. getCurrentDateTimeString(String returnFormat)