Android Calendar Get getDateAss()

Here you can find the source of getDateAss()

Description

get Date As "MM-dd-HH-mm"

Declaration

public static final String getDateAss() 

Method Source Code

//package com.java2s;

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

public class Main {
    public static final String getDateAss() {
        Calendar cal = Calendar.getInstance();
        java.text.SimpleDateFormat sdf = new SimpleDateFormat("MM-dd-HH-mm");
        String cdate = sdf.format(cal.getTime());
        return cdate;
    }//from   w  w w  .  ja  v a2s .c o  m
}

Related

  1. getDate()
  2. getDate()
  3. getDate(Calendar c)
  4. getDateAsDirName()
  5. getDateAsF()
  6. getDateMin()
  7. getDay()
  8. getDay(Calendar c)
  9. getFirstOfWeek(Calendar cal, int week)