Android Date Get getCurrentDateYearMonthDateHourMinuteSecond()

Here you can find the source of getCurrentDateYearMonthDateHourMinuteSecond()

Description

get Current Date Year Month Date Hour Minute Second

License

Apache License

Declaration

public static String getCurrentDateYearMonthDateHourMinuteSecond() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class Main {
    public static String getCurrentDateYearMonthDateHourMinuteSecond() {
        Calendar calendar = Calendar.getInstance();
        SimpleDateFormat toDateFormat = new SimpleDateFormat(
                "yyyy-MM-dd HH:mm:ss");
        return toDateFormat.format(calendar.getTime());
    }// w  w w .  jav a  2s .co m
}

Related

  1. getTomorrowAtEight()
  2. getWeekOfDate(Date dt)
  3. getYear(Date date)
  4. getDateObj()
  5. getDate(int year, int month, int date, int hourOfDay, int minute, int second)
  6. createDate(final int month, final int day, final int year)
  7. getDate(int year, int month)
  8. getDateFromString(String dateString)
  9. getCurrentlyDate()