Here you can find the source of getDDMMYYY_HHMM()
public static String getDDMMYYY_HHMM()
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Calendar; public class Main { public static String getDDMMYYY_HHMM() { SimpleDateFormat DDMMYYYY_HHMM = new SimpleDateFormat("ddMMyyyy-HHmm"); return DDMMYYYY_HHMM.format(Calendar.getInstance().getTime()); }//ww w . java 2 s. c o m }