Android Date Format getDateEN()

Here you can find the source of getDateEN()

Description

get Date in format of "yyyy-MM-dd HH:mm:ss"

Declaration

public static String getDateEN() 

Method Source Code

//package com.java2s;

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

public class Main {
    public static String getDateEN() {
        SimpleDateFormat format1 = new SimpleDateFormat(
                "yyyy-MM-dd HH:mm:ss");
        String date1 = format1.format(new Date(System.currentTimeMillis()));
        return date1;
    }/* w w  w  .j  ava 2 s.c  om*/
}

Related

  1. getCurrentDayOfWeek()
  2. getCurrentFormatedDate()
  3. getCurrentMonth()
  4. getCurrentTime()
  5. getCurrentYear()
  6. getDefaultFormatter(Date date)
  7. getFormatCurrentAdd(int amount, String format)
  8. getFormatCurrentTime(String format)
  9. getFormatCurrentTime(String format)