Android Calendar Get GetCurrentTime_String()

Here you can find the source of GetCurrentTime_String()

Description

Get Current Tim String

Declaration

public static String GetCurrentTime_String() 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static String GetCurrentTime_String() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd_HHmmss");
        String curentDateandTime = sdf.format(new Date());
        return curentDateandTime;

    }//from  w w w  .  ja v  a 2s  . c  o m
}

Related

  1. GetCurrentTime_UTCMilliSeconds()
  2. GetCurrentTime_UTCSeconds()
  3. getCurrentMonth()
  4. getCurrentTimeStr()