Android Time Format get_current_date_time_format1_str()

Here you can find the source of get_current_date_time_format1_str()

Description

gecurrendattimformastr

Declaration

public static String get_current_date_time_format1_str() 

Method Source Code

//package com.java2s;
import java.text.SimpleDateFormat;
import java.util.Calendar;

public class Main {
    private static final String DATE_TIME_FORMAT1 = "yyyyMMddHHmmss";

    public static String get_current_date_time_format1_str() {
        Calendar cal = Calendar.getInstance();
        SimpleDateFormat sdf = new SimpleDateFormat(DATE_TIME_FORMAT1);
        return sdf.format(cal.getTime());
    }//from ww w  .  j a va 2  s . co  m
}

Related

  1. convertDateTime(String date, String format)
  2. convertDateTime(long date, String format)
  3. getDateFromFormattedTimeStamp( String formattedTimeStamp)
  4. getFormattedTimeStamp(long millisSince1970)
  5. getRFC3339FormattedTime()
  6. timeFormatToString(int paramInt)
  7. timeLongToHhmm(long timeMillis, DateFormat df)
  8. toModifiedTimeString(Date modified)
  9. convertDateTime(String date)