Here you can find the source of getDateAss()
public static final String getDateAss()
//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 }