Java Date Now getCurrentDateAllformated()

Here you can find the source of getCurrentDateAllformated()

Description

get Current Date Allformated

License

Open Source License

Declaration

public static String getCurrentDateAllformated() 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

import java.util.Locale;

public class Main {
    public static String getCurrentDateAllformated() {
        Locale loc = new Locale("zh", "CN");
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", loc);

        return sdf.format(new Date());
    }/* www .  j  av  a2  s .c  o m*/
}

Related

  1. getCurrentDate(String pattern)
  2. getCurrentDate(String pattern, Locale locale)
  3. getCurrentDate2(String format)
  4. getCurrentDate_String()
  5. getCurrentDate_YYYY_MM_DD()
  6. getCurrentDateAndTime()
  7. getCurrentDateAndTimeFormat()
  8. getCurrentDateAsNiceString()
  9. getCurrentDateAsNumericEncodedByteArray()