Android Calendar Get getDateAsF()

Here you can find the source of getDateAsF()

Description

get Date As F "yyyyMMddHHmmss"

Declaration

public static final String getDateAsF() 

Method Source Code

//package com.java2s;

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

public class Main {
    public static final String getDateAsF() {
        Calendar cal = Calendar.getInstance();
        java.text.SimpleDateFormat sdf = new SimpleDateFormat(
                "yyyyMMddHHmmss");
        String cdate = sdf.format(cal.getTime());
        return cdate;
    }//  www  .  j  av  a  2  s . c o  m
}

Related

  1. getCurrentWeek(Calendar cal)
  2. getDate()
  3. getDate()
  4. getDate(Calendar c)
  5. getDateAsDirName()
  6. getDateAss()
  7. getDateMin()
  8. getDay()
  9. getDay(Calendar c)